Return current keyboard control key shift status.
Keyboard shift status flags:
kbRightShift | Right shift key pressed |
kbLeftShift | Left shift key pressed |
kbCtrl | Either Control key pressed |
kbAlt | Either Alt key pressed |
kbScrollLock | Scroll lock active |
kbNumLock | Keypad Number lock active |
kbCapsLock | Caps lock active |
kbInsertMode | Insert mode active |
Enhanced keyboard shift status flags:
kbLeftCtrl | Left Control key pressed |
kbLeftAlt | Left Alt key pressed |
kbRightCtrl | Right Control key pressed |
kbRightAlt | Right Alt key pressed |
kbScrollLockP | Scroll lock pressed |
kbNumLockP | Keypad Number lock pressed |
kbCapsLockP | Caps lock pressed |
kbSysReqP | System Request pressed |
Example:
KeyShiftState ax ; return current keyboard shift state
See also: KeyRead.