Next: , Previous: , Up: Read-Write Global Vars   [Contents][Index]


15.3.59 !keystate

[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:

0 (1)

Either Shift key

1 (2)

The Caps Lock state is active

2 (4)

Either Ctrl key

3 (8)

Either Alt key

4 (16)

The Num Lock state is active

7 (128)

The Scroll Lock state is active

See also: !keycode, !keysym, xloop, xregister