changeset 7042:c1ee6634a0c9

RT-36991: [Accessibility] Editable Combobox doesnt expand with Ctrl-Opt-Space on Mac
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Thu, 15 May 2014 13:53:53 -0700
parents 2d9c28fc2da2
children 09e01a97c670
files modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Thu May 15 11:57:26 2014 -0400
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Thu May 15 13:53:53 2014 -0700
@@ -1479,6 +1479,11 @@
         MacAttribute attr = MacAttribute.getAttribute(attribute);
         if (attr != null) {
             switch (attr) {
+                case NSAccessibilityExpandedAttribute:
+                    if (getAttribute(ROLE) == Role.COMBOBOX) {
+                        executeAction(Action.EXPAND);
+                    }
+                    break;
                 case NSAccessibilitySelectedCellsAttribute:
                 case NSAccessibilitySelectedRowsAttribute: {
                     MacVariant variant = idToMacVariant(value, MacVariant.NSArray_id);