[orca] Event Manager: Add state-changed:selected to spam clearers
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Event Manager: Add state-changed:selected to spam clearers
- Date: Mon, 14 Jun 2021 13:50:32 +0000 (UTC)
commit b2fe75ba196bfeed1c97a5c714d8b8380f6b37d5
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jun 14 15:45:22 2021 +0200
Event Manager: Add state-changed:selected to spam clearers
This is similar to what we do with state-changed:focused. If the object
is a container which supports selection, we might not get a focus change,
but should get a selection change. This should also handle the case where
gnome-shell occasionally spams us with state-changed:showing events,
because it emits selection change events.
src/orca/event_manager.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index abd652ffe..11ef776db 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -776,6 +776,9 @@ class EventManager:
if event.type.startswith("object:state-changed:focused"):
return event.detail1
+ if event.type.startswith("object:state-changed:selected"):
+ return event.detail1
+
if event.type.startswith("window:activate"):
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]