[orca] Try to prevent an incorrect browse mode auto-toggling from caret-moved events



commit 3edac7be1950cca6eaea8a75dd254e7df6a36adc
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Aug 13 19:34:51 2014 -0400

    Try to prevent an incorrect browse mode auto-toggling from caret-moved events

 src/orca/scripts/toolkits/Gecko/script.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 1c7faac..00aec33 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -883,9 +883,6 @@ class Script(default.Script):
 
         default.Script.onCaretMoved(self, event)
 
-        if self._useFocusMode(obj) != self._inFocusMode:
-            self.togglePresentationMode(None)
-
     def onTextDeleted(self, event):
         """Called whenever text is from an an object.
 
@@ -3305,6 +3302,8 @@ class Script(default.Script):
         orca.setLocusOfFocus(None, obj, notifyScript=False)
         if state.contains(pyatspi.STATE_FOCUSABLE):
             obj.queryComponent().grabFocus()
+            if self._useFocusMode(obj) != self._inFocusMode:
+                self.togglePresentationMode(None)
 
         text = self.utilities.queryNonEmptyText(obj)
         if text:


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