From 20c9b8cf0c85dabbe73b5b0ce155729a92f47bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Fri, 7 Feb 2025 14:21:17 +0100 Subject: [PATCH] backends: Add a11y interface methods to subscribe to key event input This adds a pair of methods to signal an interest in receiving all key events without grabbing them, e. g. the previously expected behavior by screen readers. Part-of: --- data/dbus-interfaces/org.freedesktop.a11y.xml | 31 +++++++++++- src/backends/meta-a11y-manager.c | 47 ++++++++++++++++++- 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/data/dbus-interfaces/org.freedesktop.a11y.xml b/data/dbus-interfaces/org.freedesktop.a11y.xml index c60480e89..4f1d21042 100644 --- a/data/dbus-interfaces/org.freedesktop.a11y.xml +++ b/data/dbus-interfaces/org.freedesktop.a11y.xml @@ -16,7 +16,7 @@ GrabKeyboard: Starts grabbing all key events. The client receives the events - through the KeyEvent signal as always, but the events aren't handled + through the KeyEvent signal, and in addition, the events aren't handled normally by the compositor. This includes changes to the state of toggles like Caps Lock, Num Lock, and Scroll Lock. @@ -33,9 +33,36 @@ After calling this method, the key grabs specified in the last call to SetKeyGrabs, if any, are still in effect. + Also, the client will still receive key events through the KeyEvent + signal, if it has called WatchKeyboard. --> + + + + + +