[orca] Restore the locus of focus when Alt+Tabbing back into Firefox



commit d5f1f97dcdc20194fd8a445e080d67a00d81a17a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Nov 20 16:39:25 2013 -0500

    Restore the locus of focus when Alt+Tabbing back into Firefox

 src/orca/scripts/toolkits/Gecko/script.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index caf9bcd..dc12721 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1225,8 +1225,14 @@ class Script(default.Script):
         # As the caret moves into a non-focusable element, Gecko emits the
         # signal on the first focusable element in the ancestry.
         rolesToIgnore = pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_PANEL
-        if role in rolesToIgnore and self.inDocumentContent():
-            return
+        if role in rolesToIgnore:
+            if self.inDocumentContent():
+                return
+
+            contextObj, contextOffset = self.getCaretContext()
+            if contextObj:
+                orca.setLocusOfFocus(event, contextObj)
+                return
 
         default.Script.onFocusedChanged(self, event)
 


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