[orca] Web: Don't enter focus mode if we're in SayAll
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Don't enter focus mode if we're in SayAll
- Date: Fri, 8 Jan 2021 11:07:53 +0000 (UTC)
commit 5a191227a7d23bd86e34fb4f59b1fc4b3f0fc297
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jan 8 12:04:43 2021 +0100
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.
src/orca/scripts/web/script.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index e0bf95cf8..f9986f471 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]