[orca] Don't speak row header role with multiple objects are on the same line



commit e4ffe90effd43c33344a11d69fc3843640b0aced
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Sep 13 09:24:29 2018 -0400

    Don't speak row header role with multiple objects are on the same line

 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 4ef94f3d1..2a01aa184 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -291,6 +291,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
         force = args.get('force', False)
         start = args.get('startOffset')
         end = args.get('endOffset')
+        total = args.get('total', 1)
 
         if not force:
             doNotSpeak = [pyatspi.ROLE_FOOTER,
@@ -315,6 +316,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
                 doNotSpeak.append(pyatspi.ROLE_ALERT)
             if self._script.utilities.isAnchor(obj):
                 doNotSpeak.append(obj.getRole())
+            if total > 1:
+                doNotSpeak.append(pyatspi.ROLE_ROW_HEADER)
 
         if obj.getState().contains(pyatspi.STATE_EDITABLE):
             lastKey, mods = self._script.utilities.lastKeyAndModifiers()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]