add_key_grab


Description:

[ NoWrapper ]
public virtual void add_key_grab (KeyDefinition kd)

Parameters:

this

the device.

kd

a KeyDefinition specifying the key code to grab.

callback

the function to call when the given key is pressed.

callback_destroyed

callback function to be called when callback is destroyed.

user_data

Data to be passed to callback.

Returns:

an identifier that can be later used to remove the grab. Add a key grab for the given key/modifier combination.