a pointer to the Atspi.DeviceListener for which keystroke events are requested.
a pointer to the Atspi.KeyDefinition array indicating which keystroke events are requested, or NULL to indicate that all keycodes and keyvals for the specified modifier set are to be included.
an Atspi.KeyMaskType mask indicating which key event modifiers must be set in combination with keys, events will only be reported for key events for which all modifiers in modmask are set. If you wish to listen for events with multiple modifier combinations, you must call atspi_register_keystroke_listener once for each combination.
an Atspi.KeyMaskType mask indicating which types of key events are requested (Atspi.KeyEventType.PRESSED etc.).
an Atspi.KeyListenerSyncType parameter indicating the behavior of the notification/listener transaction.
true if successful, otherwise false.
Registers a listener for keystroke events, either pre-emptively for all windows (Atspi.KeyListenerSyncType.ALL_WINDOWS), non-preemptively (Atspi.KeyListenerSyncType.NOSYNC), or pre-emptively at the toolkit level (Atspi.KeyListenerSyncType.CANCONSUME). If ALL_WINDOWS or CANCONSUME are used, the event is consumed upon receipt if one of
listener's callbacks returnstrue(other sync_type values may be available in the future).