[orca] Event manager: Ignore state-changed:sensitive from inactive apps



commit 045941f0e8438a13a7e5e0527f6c39b5be379f24
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Apr 21 12:37:14 2022 +0200

    Event manager: Ignore state-changed:sensitive from inactive apps

 src/orca/event_manager.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 81f756e8f..bc174185c 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -181,7 +181,8 @@ class EventManager:
             return True
 
         script = orca_state.activeScript
-        if event.type.startswith('object:children-changed'):
+        if event.type.startswith('object:children-changed') \
+           or event.type.startswith('object:state-changed:sensitive'):
             if not script:
                 msg = 'EVENT MANAGER: Ignoring because there is no active script'
                 debug.println(debug.LEVEL_INFO, msg, True)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]