grab_key/6
grab_key(+Key, +ModifiersMask, +GrabWindow, +OwnerEvents, +PointerMode, +KeyboardMode)
Establishes a passive grab on the keyboard, to be activated when the given key and modifiers are pressed while the pointer is in the window.
Key is the key that should be pressed. Possible values are:
keysym/2
.
any_key
ModifiersMask is one of:
modifiers_mask/2
is useful to translate between
modifier specifications and bitmasks.
any_modifier
Window is the ProXL window to which events will be reported while the grab is in effect.
OwnerEvents is one of:
true
false
PointerMode controls further processing of pointer events:
async
sync
allow_events/[1,2,3]
or the pointer grab is released.
KeyboardMode controls further processing of keyboard events:
async
sync
allow_events/[1,2,3]
or the keyboard grab is released.