[orca] Don't present position in list for the accessible menu in a context menu



commit b226607bcf451b1b1c0d00ed6ed5fab4845a6512
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 c9c7797..4810722 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1665,6 +1665,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]