[orca] Only ignore the deprecated focus: events for document content in Gecko



commit 8f87ef1c44d4c5691e7715681072359e9eb0d0a2
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Aug 9 11:41:31 2014 -0400

    Only ignore the deprecated focus: events for document content in Gecko

 src/orca/scripts/toolkits/Gecko/script.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 5341743..56201ad 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1096,7 +1096,8 @@ class Script(default.Script):
     def onFocus(self, event):
         """Callback for focus: accessibility events."""
 
-        if not self.inDocumentContent(event.source):
+        # We should get proper state-changed events for these.
+        if self.inDocumentContent(event.source):
             return
 
         # NOTE: This event type is deprecated and Orca should no longer use it.


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