[orca] Eliminate some chattiness with Google Drive menus
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Eliminate some chattiness with Google Drive menus
- Date: Tue, 20 Aug 2019 21:49:29 +0000 (UTC)
commit 028f00f18835da40b0967c736f1adeb483131277
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Aug 20 17:48:50 2019 -0400
Eliminate some chattiness with Google Drive menus
src/orca/scripts/web/script.py | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index f9702d7d1..f3d681dc9 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1655,6 +1655,14 @@ class Script(default.Script):
obj, offset = self.utilities.getCaretContext(getZombieReplicant=True)
if not obj:
if self._inFocusMode:
+ if event.source.getState().contains(pyatspi.STATE_FOCUSED) \
+ and not self.utilities.isTextBlockElement(event.source):
+ msg = "WEB: Event handled by updating locusOfFocus and context"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ orca.setLocusOfFocus(event, event.source, False)
+ self.utilities.setCaretContext(event.source, 0)
+ return True
+
msg = "WEB: Not looking for replicant due to focus mode."
debug.println(debug.LEVEL_INFO, msg, True)
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]