Commit e4ffe90effd43c33344a11d69fc3843640b0aced

Authored by Joanmarie Diggs
1 parent b3e29a26

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

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/orca/scripts/web/speech_generator.py
... ... @@ -291,6 +291,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
291 291 force = args.get('force', False)
292 292 start = args.get('startOffset')
293 293 end = args.get('endOffset')
  294 + total = args.get('total', 1)
294 295  
295 296 if not force:
296 297 doNotSpeak = [pyatspi.ROLE_FOOTER,
... ... @@ -315,6 +316,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
315 316 doNotSpeak.append(pyatspi.ROLE_ALERT)
316 317 if self._script.utilities.isAnchor(obj):
317 318 doNotSpeak.append(obj.getRole())
  319 + if total > 1:
  320 + doNotSpeak.append(pyatspi.ROLE_ROW_HEADER)
318 321  
319 322 if obj.getState().contains(pyatspi.STATE_EDITABLE):
320 323 lastKey, mods = self._script.utilities.lastKeyAndModifiers()
... ...