On 02/07/15 18:30, Luca Saiu wrote:
> Hello again.
>
> I noticed that the keybindings which are globally bound to Orca
> commands, such as "toggle flat review" (keypad -) or "read the current
> line" (keypad 8) are seen by my SDL/ATK program as ordinary keyboard
> events, which is clearly wrong.
>
> Of course I'm sure that even GTK+ has no specific knowledge about Orca
> keybindings.  What am I missing?  Is there a way for an application to
> notify the accessibility subsystem that an appropriate but unspecified
> set of keyboard (or mouse?) events is to be trapped?

Did you implemented these functions:?
https://developer.gnome.org/atk/unstable/AtkUtil.html#atk-add-key-event-listener
https://developer.gnome.org/atk/unstable/AtkUtil.html#atk-remove-key-event-listener

As you can see from the AtkKeySnoopFunc documentation:
https://developer.gnome.org/atk/unstable/AtkUtil.html#AtkKeySnoopFunc

"An AtkKeySnoopFunc
<https://developer.gnome.org/atk/unstable/AtkUtil.html#AtkKeySnoopFunc>
is a type of callback which is called whenever a key event occurs, if
registered via atk_add_key_event_listener. It allows for pre-emptive
interception of key events via the return code as described below."

BR

-- 
Alejandro Piñeiro ([email protected])

Reply via email to