Skip to content

clutter: Always snoop key events for a11y

Carlos Garnacho requested to merge wip/carlosg/a11y-snoop-keys into main

In the case a11y is required, the screen reader is very much interested in getting an uniterrupted flow of key events. It attempts so by setting a ::captured-event callback on the ClutterStage, but that falls short with our MetaDisplay event handler, as clutter events can be stopped before a11y gets a chance to see them.

This kind of selective amnesia wrt key events is not new, in X11 those go unheard of by the WM as long as a client is focused and no grabs hold, so it is clients' responsibility to talk with AT bridge.

This commit doesn't yet change that for X11, but we can do this right away from the compositor on Wayland, and without any chance to be tampered by clients.

Edited by Carlos Garnacho

Merge request reports