[orca] Don't speak the 'suggestion' role if in suggestion text
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't speak the 'suggestion' role if in suggestion text
- Date: Fri, 24 Jan 2020 20:54:30 +0000 (UTC)
commit d6c8ed8b56f9dff57331c50ff37860bc211c6e1a
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Fri Jan 24 15:53:13 2020 -0500
Don't speak the 'suggestion' role if in suggestion text
We want to announce it only when entering or leaving the container.
src/orca/scripts/web/speech_generator.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index d6ec95c3e..a3f2aef16 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -434,6 +434,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
doNotSpeak.append(pyatspi.ROLE_TABLE_CELL)
doNotSpeak.append(pyatspi.ROLE_TEXT)
doNotSpeak.append(pyatspi.ROLE_STATIC)
+ if args.get('string'):
+ doNotSpeak.append("ROLE_CONTENT_SUGGESTION")
if args.get('formatType', 'unfocused') != 'basicWhereAmI':
doNotSpeak.append(pyatspi.ROLE_LIST_ITEM)
doNotSpeak.append(pyatspi.ROLE_LIST)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]