[orca] Web: Don't announce unselected state of grid cells/rows in browse mode
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Don't announce unselected state of grid cells/rows in browse mode
- Date: Fri, 21 May 2021 12:05:09 +0000 (UTC)
commit a837b8ee38e847e2bef5fe87b79ab014ea133bd3
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri May 21 13:54:08 2021 +0200
Web: Don't announce unselected state of grid cells/rows in browse mode
If we're in browse mode in a grid, the user has presumably chosen to
review the contents rather than interact with them using author-provided
navigation and associated functionality. As such, tacking on "not selected"
for each gridcell is not especially helpful.
src/orca/scripts/web/speech_generator.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 68348da38..d0b3a428d 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -710,6 +710,12 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
result.extend(self.voice(speech_generator.SYSTEM))
return result
+ def _generateUnselectedCell(self, obj, **args):
+ if not self._script.inFocusMode():
+ return []
+
+ return super()._generateUnselectedCell(obj, **args)
+
def _generateRealTableCell(self, obj, **args):
result = super()._generateRealTableCell(obj, **args)
if not self._script.inFocusMode():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]