[orca] Don't treat list items as ancestors when generating speech for web content



commit 9239c66783b878c5649e9135ab044db0fea1a9da
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Jan 16 17:22:57 2014 -0500

    Don't treat list items as ancestors when generating speech for web content

 .../scripts/toolkits/Gecko/speech_generator.py     |    1 +
 .../scripts/toolkits/WebKitGtk/speech_generator.py |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/speech_generator.py 
b/src/orca/scripts/toolkits/Gecko/speech_generator.py
index b055415..34fcb9f 100644
--- a/src/orca/scripts/toolkits/Gecko/speech_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/speech_generator.py
@@ -303,6 +303,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
                                pyatspi.ROLE_MENU_BAR,
                                pyatspi.ROLE_TOOL_BAR]
         args['skipRoles'] = [pyatspi.ROLE_PARAGRAPH,
+                             pyatspi.ROLE_LIST_ITEM,
                              pyatspi.ROLE_TEXT]
 
         return speech_generator.SpeechGenerator._generateAncestors(
diff --git a/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py 
b/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py
index 02dea0e..a6a51bc 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/speech_generator.py
@@ -160,6 +160,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
                                pyatspi.ROLE_MENU_BAR,
                                pyatspi.ROLE_TOOL_BAR]
         args['skipRoles'] = [pyatspi.ROLE_PARAGRAPH,
+                             pyatspi.ROLE_LIST_ITEM,
                              pyatspi.ROLE_TEXT]
 
         return speech_generator.SpeechGenerator._generateAncestors(


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