[orca/gnome-3-16] Don't present position in list for the accessible menu in a context menu



commit 84e38dfef8cc2fdb1cdbafa9a44f51f883f91973
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Apr 4 14:20:48 2015 -0400

    Don't present position in list for the accessible menu in a context menu
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747324

 src/orca/speech_generator.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index d853ae9..aae9b4a 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1671,6 +1671,10 @@ class SpeechGenerator(generator.Generator):
                    or args.get('forceList', False)):
             return []
 
+        if obj.getRole() == pyatspi.ROLE_MENU \
+           and obj.parent == self._script.utilities.topLevelObject(obj):
+            return []
+
         result = []
         acss = self.voice(SYSTEM)
         position, total = self._script.utilities.getPositionAndSetSize(obj)


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