[orca/570658] Add braille formatting for ROLE_MENU



commit 59255017248a10f2c2591ddacfa13a9c8daba06e
Author: Willie Walker <william walker sun com>
Date:   Thu Jun 25 13:42:11 2009 -0400

    Add braille formatting for ROLE_MENU

 src/orca/formatting.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 047e3f8..432f368 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -356,7 +356,12 @@ formatting = {
             'unfocused': '[Component(obj,\
                                      asString(label + displayedText + expandableState + nodeLevel))]',
             },
-        #pyatspi.ROLE_MENU: [[[TODO: WDW - needs to be done]]]
+        pyatspi.ROLE_MENU: {
+            'focused':   '[Component(obj,\
+                                     asString(label + displayedText + roleName + availability) + asString(accelerator))]',
+            'unfocused': '[Component(obj,\
+                                     asString(label + displayedText + roleName))]',
+            },
         #pyatspi.ROLE_MENU_BAR: 'default'
         pyatspi.ROLE_MENU_ITEM: {
             'unfocused': '[Component(obj,\



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