The following paragraphs describe the functions used for passively grabbing and releasing the keyboard.
grab-key | window key & key (:modifiers 0) :owner-p :sync-pointer-p :sync-keyboard-p :time | Function |
This request establishes a passive grab on the keyboard. If the specified key (which can also be a modifier key) is pressed (whether or not any specified modifier keys are down), and either of the following is true:
A zero modifier mask is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all specified modifiers have currently assigned keycodes. A key of :any is equivalent to issuing the request for all possible keycodes. Otherwise, the key must be in the range specified by display-min-keycode and display-max-keycode in the connection setup. |
ungrab-key | window key & key (:modifiers 0) | Function |
Releases the key combination on the specified window if it was grabbed by this client. A zero modifier mask of :any is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). A key of :any is equivalent to issuing the request for all possible keycodes. ungrab-key has no effect on an active grab. |