changeset 7602:cf703edd10f2

[Accessibility] implementing expand and collapse action for treeitem and tabletreeitem on Mac, use Control+Option+\
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Wed, 30 Jul 2014 14:48:27 -0700
parents 72ae8aa29e73
children 74252ba3f926
files modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Wed Jul 30 15:20:50 2014 +0100
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Wed Jul 30 14:48:27 2014 -0700
@@ -1574,6 +1574,17 @@
                     }
                     break;
                 }
+                case NSAccessibilityDisclosingAttribute: {
+                    MacVariant variant = idToMacVariant(value, MacVariant.NSNumber_Boolean);
+                    if (variant != null) {
+                        if (variant.int1 != 0) {
+                            executeAction(AccessibleAction.EXPAND);
+                        } else {
+                            executeAction(AccessibleAction.COLLAPSE);
+                        }
+                    }
+                    break;
+                }
                 case NSAccessibilityExpandedAttribute:
                     if (getAttribute(ROLE) == AccessibleRole.COMBO_BOX) {
                         executeAction(AccessibleAction.EXPAND);