[orca] Make useFocusMode() a public method



commit 9d92d96b98a447c5dc03d5d8faea4fe9b163141d
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Feb 20 07:26:34 2016 -0500

    Make useFocusMode() a public method

 src/orca/scripts/apps/Thunderbird/script.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index ef85697..a556f71 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -134,11 +134,15 @@ class Script(Gecko.Script):
 
         super().locusOfFocusChanged(event, oldFocus, newFocus)
 
-    def _useFocusMode(self, obj):
+    def useFocusMode(self, obj):
         if self.isEditableMessage(obj):
+            msg = "THUNDERBIRD: Using focus mode for editable message %s" % obj
+            debug.println(debug.LEVEL_INFO, msg, True)
             return True
 
-        return Gecko.Script._useFocusMode(self, obj)
+        msg = "THUNDERBIRD: %s is not an editable message." % obj
+        debug.println(debug.LEVEL_INFO, msg, True)
+        return super().useFocusMode(obj)
 
     def togglePresentationMode(self, inputEvent):
         if self._inFocusMode and self.isEditableMessage(orca_state.locusOfFocus):


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