FUNCTIONS GT

GTI_KBDSHIFTS

Query or change the state of the shift and lock keys

Syntax

Signature
GtInfo( GTI_KBDSHIFTS, [nShifts] ) --> nShifts

Arguments

GTI_KBDSHIFTS

The selector, from gtinfo.ch.

nShifts

New states of the lock keys as GTI_KBD_* flags.

Return value

The pressed keys and the active lock keys as a sum of GTI_KBD_* flags.

Description

The flags are defined in gtinfo.ch:

FlagKey
GTI_KBD_SHIFT, GTI_KBD_LSHIFT, GTI_KBD_RSHIFTShift, left and right
GTI_KBD_CTRL, GTI_KBD_LCTRL, GTI_KBD_RCTRLCtrl, left and right
GTI_KBD_ALT, GTI_KBD_LALT, GTI_KBD_RALTAlt, left and right
GTI_KBD_LWIN, GTI_KBD_RWIN, GTI_KBD_MENUWindows and menu keys
GTI_KBD_SCROLOCK, GTI_KBD_NUMLOCK, GTI_KBD_CAPSLOCKthe lock keys
GTI_KBD_INSERTInsert mode
GTI_KBD_KEYPADa key of the numeric keypad

A new value can only switch the lock keys.

Notes

Supported by GTWVT, GTSDL3, GTXWC and GTGLFW. On other terminals the result is NIL.

Output

See also