[orca] If auto-focus-mode is disabled for native navigation, preserve current mode



commit d77940e8183afc36e1a405dc7c64e79826ef4a29
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Aug 19 19:20:44 2020 +0200

    If auto-focus-mode is disabled for native navigation, preserve current mode
    
    If auto-focus-mode is disabled for native navigation, not only should we
    not turn on focus mode, we should also not turn it off if Tab moves to a
    non-focus-mode element.

 src/orca/scripts/web/script.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 90f0c57af..b994a900d 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -832,9 +832,9 @@ class Script(default.Script):
 
         if not _settingsManager.getSetting('nativeNavTriggersFocusMode') \
            and not (self._lastCommandWasStructNav or self._lastCommandWasCaretNav):
-            msg = "WEB: Not using focus mode due to native nav settings"
+            msg = "WEB: Not changing focus/browse mode due to native nav settings"
             debug.println(debug.LEVEL_INFO, msg, True)
-            return False
+            return self._inFocusMode
 
         if self.utilities.isFocusModeWidget(obj):
             msg = "WEB: Using focus mode because %s is a focus mode widget" % obj


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