Predefined Keys Trap All SHIFT Combinations; PEEK SHIFT Status (69046)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System for MS-DOS 7.0
- Microsoft Basic Professional Development System for MS-DOS 7.1
This article was previously published under Q69046 SUMMARY
The predefined key traps KEY(0) through KEY(14), KEY(30), and KEY(31)
are active no matter what combinations of the SHIFT, CTRL, ALT, CAPS
LOCK, and NUM LOCK keys are active. If you want to distinguish and
trap both the SHIFTed and unSHIFTed status for a given key, you must
either set up two user-defined key traps, or check the contents of the
SHIFT register while the predefined key is being trapped.
REFERENCES
For more information on this topic, query on the following words:
key and trap and CAPS and NUM and LOCK and user and defined
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB69046 |
---|
|