Function
Atspiregister_keystroke_listener
Declaration [src]
gboolean
atspi_register_keystroke_listener (
AtspiDeviceListener* listener,
GArray* key_set,
AtspiKeyMaskType modmask,
AtspiKeyEventMask event_types,
AtspiKeyListenerSyncType sync_type,
GError** error
)
Description [src]
Registers a listener for keystroke events, either pre-emptively for
all windows (ATSPI_KEYLISTENER_ALL_WINDOWS),
non-preemptively (ATSPI_KEYLISTENER_NOSYNC), or
pre-emptively at the toolkit level (ATSPI_KEYLISTENER_CANCONSUME).
If ALL_WINDOWS or CANCONSUME are used, the event is consumed
upon receipt if one of listener‘s callbacks returns TRUE
(other sync_type values may be available in the future).
Parameters
listener |
AtspiDeviceListener |
A pointer to the |
|
| The data is owned by the caller of the function. | |
key_set |
An array of AtspiKeyDefinition* |
A pointer to the
|
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
modmask |
AtspiKeyMaskType |
An |
|
event_types |
AtspiKeyEventMask |
An |
|
sync_type |
AtspiKeyListenerSyncType |
An |
|
error |
GError ** |
The return location for a GError*, or NULL. |