[orca] Hack around lack of window:activate events for ARIA dialogs



commit d9f51040ba85dbc62d25c030db2ea4703f199e44
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Dec 1 18:24:38 2017 -0500

    Hack around lack of window:activate events for ARIA dialogs

 src/orca/scripts/web/script.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 62fdbbd..899011b 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -485,6 +485,15 @@ class Script(default.Script):
             if event.source.getRole() == pyatspi.ROLE_LINK:
                 return False
 
+        if event.type.startswith('object:children-changed'):
+            try:
+                role = event.any_data.getRole()
+            except:
+                pass
+            else:
+                if role == pyatspi.ROLE_DIALOG:
+                    return False
+
         return super().skipObjectEvent(event)
 
     def consumesKeyboardEvent(self, keyboardEvent):


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