Commit 5a191227 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Web: Don't enter focus mode if we're in SayAll

Sometimes web pages auto-focus a widget after page load. If we're
doing a SayAll of that page at the time this occurs, we don't want
to leave browse mode because it can impact what and how we present
things as well as put the user in an state they don't expect.
parent 9c07c55f
......@@ -820,6 +820,11 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return False
if self.inSayAll():
msg = "WEB: Not using focus mode because we're in SayAll."
debug.println(debug.LEVEL_INFO, msg, True)
return False
if not _settingsManager.getSetting('structNavTriggersFocusMode') \
and self._lastCommandWasStructNav:
msg = "WEB: Not using focus mode due to struct nav settings"
......
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