[orca] Web: Ensure we clear the flat review context when focus changes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Ensure we clear the flat review context when focus changes
- Date: Fri, 13 Mar 2020 21:49:01 +0000 (UTC)
commit edeab7d09d78da231f293fb853a3fedfef758e0b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Mar 13 17:45:57 2020 -0400
Web: Ensure we clear the flat review context when focus changes
The default script clears the flat review context whenever the caret
moves and whenever focus changes. The web script was only doing this
as part of caret navigation. As a result, we were failing to present
the correct flat review location in certain web apps.
src/orca/scripts/web/script.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 142c2a26d..287a876e2 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1205,6 +1205,9 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return False
+ if self.flatReviewContext:
+ self.toggleFlatReviewMode()
+
caretOffset = 0
if self.utilities.inFindContainer(oldFocus) \
or (self.utilities.isDocument(newFocus) and oldFocus == orca_state.activeWindow):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]