[orca] Ignore children-changed events from non-ARIA dialogs



commit 9e40f88bfaf2d5306794013944963f2ee333defa
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Jan 30 09:12:57 2014 -0500

    Ignore children-changed events from non-ARIA dialogs

 src/orca/scripts/toolkits/Gecko/script.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index bf89628..ce938e6 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1117,10 +1117,15 @@ class Script(default.Script):
         except:
             return
 
-        if childRole in [pyatspi.ROLE_ALERT, pyatspi.ROLE_DIALOG]:
+        if childRole == pyatspi.ROLE_ALERT:
             orca.setLocusOfFocus(event, child)
             return
 
+        if childRole == pyatspi.ROLE_DIALOG:
+            if self.isAriaWidget(event.source):
+                orca.setLocusOfFocus(event, child)
+            return
+
         if self.lastMouseRoutingTime \
            and 0 < time.time() - self.lastMouseRoutingTime < 1:
             utterances = []


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