changeset 6648:4e6e6ad7ad1d 8u20-b09

[Accessibility] Fix TOGGLE_BUTTON (got the wrong role name in the transition to remove TOGGLE_STATE)
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Fri, 04 Apr 2014 16:56:59 -0700
parents 12a300075064
children 10dccb278770 b7f4b696c540 41244e1236eb
files modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Fri Apr 04 16:39:56 2014 -0700
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Fri Apr 04 16:56:59 2014 -0700
@@ -1133,7 +1133,7 @@
                 if (jfxAttr == SELECTED_TAB || jfxAttr == SELECTED_PAGE) {
                     result = getAccessible((Node)result);
                 }
-                if (role == Role.CHECKBOX || role == Role.RADIO_BUTTON) {
+                if (role == Role.CHECKBOX || role == Role.TOGGLE_BUTTON) {
                     if (Boolean.TRUE.equals(getAttribute(INDETERMINATE))) {
                         result = 2;
                     } else {