Method

AtspiDeviceadd_key_grab

Declaration [src]

guint
atspi_device_add_key_grab (
  AtspiDevice* device,
  AtspiKeyDefinition* kd,
  AtspiKeyCallback callback,
  void* user_data,
  GDestroyNotify callback_destroyed
)

Description

No description available.

Parameters

kd AtspiKeyDefinition
 

A AtspiKeyDefinition specifying the key code to grab.

 The data is owned by the caller of the function.
callback AtspiKeyCallback
 

The function to call when the given key is pressed.

 The argument can be NULL.
user_data void*
 

Data to be passed to callback.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback_destroyed GDestroyNotify
 

Callback function to be called when callback is destroyed.

Return value

Returns: guint
 

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