[orca] Don't look for replicant for zombie locusOfFocus when in focus mode



commit 26c5d79369ab7840129fcdd0539f4388de5d9234
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Nov 22 09:45:38 2015 -0500

    Don't look for replicant for zombie locusOfFocus when in focus mode

 src/orca/scripts/web/script.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 165e2c4..8ece8e9 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1319,6 +1319,13 @@ class Script(default.Script):
         obj, offset = self.utilities.getCaretContext()
         contextDocument = self.utilities.getDocumentForObject(obj)
         if obj and document == contextDocument and self.utilities.isZombie(obj):
+            msg = "WEB: Context obj %s is Zombie." % obj
+            debug.println(debug.LEVEL_INFO, msg)
+            if self._inFocusMode:
+                msg = "WEB: Not looking for replicant due to focus mode."
+                debug.println(debug.LEVEL_INFO, msg)
+                return False
+
             replicant = self.utilities.findReplicant(event.source, obj)
             if replicant:
                 # Refrain from actually touching the replicant by grabbing


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