Commit d77940e8 authored by Joanmarie Diggs's avatar Joanmarie Diggs

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.
parent 49dc924d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment