[orca] Stay in focus mode if focus immediately moves to another focusable object



commit 24a3b6bde53d8ef3cfb80f49bc3a960ee3d0e910
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Aug 9 13:47:49 2014 -0400

    Stay in focus mode if focus immediately moves to another focusable object

 src/orca/scripts/toolkits/Gecko/script.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 56201ad..7c3e1f6 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1230,6 +1230,9 @@ class Script(default.Script):
            and not state.contains(pyatspi.STATE_SELECTED):
             return False
 
+        if self._inFocusMode:
+            return True
+
         if state.contains(pyatspi.STATE_EDITABLE) \
            or state.contains(pyatspi.STATE_EXPANDABLE):
             return True


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