Next: !keysym, Previous: !keycode, Up: Read-Write Global Vars [Contents][Index]
[x11 package]
If key press events are selected through
xregister
and waited for using xloop
, then
!keystate
contains a long
number of which the individual
bits indicate the state of the modifier keys during the key press. On
my system, the following bits correspond to the following modifier keys:
Either Shift
key
The Caps Lock
state is active
Either Ctrl
key
Either Alt
key
The Num Lock
state is active
The Scroll Lock
state is active