[orca] Attempt to be smarter about toggling focus mode after a page loads



commit ca8f5137bf3cb7005c16b820dc446f051d59bd9f
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Nov 11 18:08:45 2014 -0500

    Attempt to be smarter about toggling focus mode after a page loads

 src/orca/scripts/toolkits/Gecko/script.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index ff3da14..8674fba 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1050,8 +1050,8 @@ class Script(default.Script):
         if not finishedLoading:
             return
 
-        if not self._focusModeIsSticky:
-            self._inFocusMode = False
+        if self.useFocusMode(newFocus) != self._inFocusMode:
+            self.togglePresentationMode(None)
 
         # Store the document frame otherwise the first time it gains focus (e.g.
         # the first time the user arrows off of a link into non-focusable text),


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