changeset 7576:e316ee0f0b41

[Accessibility] Fix column names on Mac Yosimite
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Wed, 23 Jul 2014 11:25:59 -0700
parents 8cdd9a23b6e6
children c6fb52b57550
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 23 17:43:06 2014 +0200
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Wed Jul 23 11:25:59 2014 -0700
@@ -1232,6 +1232,17 @@
                      */
                     result = 1;
                     break;
+                case NSAccessibilityColumnIndexRangeAttribute:
+                    if (role == AccessibleRole.TABLE_COLUMN) {
+                        /*
+                         * Mac 10.10 sends AXColumnIndexRange instead of AXIndex for
+                         * AXColumns. This is undocumented but without it the column
+                         * header name is not read.
+                         */
+                        result = getAttribute(INDEX);
+                        if (result != null) break;
+                    }
+                    return null;
                 case AXMenuItemCmdModifiers:
                     return attr.map.apply(kAXMenuItemModifierNoCommand);
                 case NSAccessibilityRoleDescriptionAttribute: {