[orca] Minimize chattiness when scrolling in Google Sheets
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Minimize chattiness when scrolling in Google Sheets
- Date: Wed, 5 Jun 2019 23:15:18 +0000 (UTC)
commit 7a8bc3d56aecd4500f634ebf8b33d8babe087293
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Jun 5 19:14:43 2019 -0400
Minimize chattiness when scrolling in Google Sheets
src/orca/scripts/web/script.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 47c71539f..6bcd7773f 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1196,7 +1196,7 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
contents = self.utilities.getLineContentsAtOffset(newFocus, 0)
utterances = self.speechGenerator.generateContents(contents)
- elif self.utilities.lastInputEventWasPageNav():
+ elif self.utilities.lastInputEventWasPageNav() and not self.utilities.getTable(newFocus):
msg = "WEB: New focus %s was scrolled to. Generating line contents." % newFocus
debug.println(debug.LEVEL_INFO, msg, True)
contents = self.utilities.getLineContentsAtOffset(newFocus, caretOffset)
@@ -1465,7 +1465,8 @@ class Script(default.Script):
return True
if self.utilities.lastInputEventWasPageNav() \
- and not self.utilities.isLink(event.source):
+ and not self.utilities.isLink(event.source) \
+ and not event.source.getRole() == pyatspi.ROLE_COMBO_BOX:
msg = "WEB: Event handled: Caret moved due to scrolling"
debug.println(debug.LEVEL_INFO, msg, True)
self.utilities.setCaretContext(obj, offset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]