[orca] Web: Eliminate chattiness resulting from aria-labelledby during navigation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Eliminate chattiness resulting from aria-labelledby during navigation
- Date: Fri, 4 Dec 2020 13:05:03 +0000 (UTC)
commit 422d4dbd00c5415204291fb00ca54d2de8c9f9f1
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Dec 4 14:03:37 2020 +0100
Web: Eliminate chattiness resulting from aria-labelledby during navigation
If one navigates from the label for an object into the labelled object
we don't want to speak that label again.
src/orca/scripts/web/speech_generator.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index cbf35e379..6db32653d 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -321,6 +321,9 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
if obj == priorObj:
return []
+ if priorObj and priorObj in self._script.utilities.labelsForObject(obj):
+ return []
+
if self._script.utilities.isContentEditableWithEmbeddedObjects(obj):
lastKey, mods = self._script.utilities.lastKeyAndModifiers()
if lastKey in ["Home", "End", "Up", "Down", "Left", "Right", "Page_Up", "Page_Down"]:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]