changeset 6574:5ff2177ef9b6

[Accessibility] RT-36268 - Fire Action added to MenuItemContainer
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Fri, 28 Mar 2014 16:10:41 -0700
parents de25f2ce8a32
children d7e80f499365
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ContextMenuContent.java
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ContextMenuContent.java	Fri Mar 28 16:02:43 2014 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ContextMenuContent.java	Fri Mar 28 16:10:41 2014 -0700
@@ -53,6 +53,7 @@
 import javafx.geometry.*;
 import javafx.scene.Node;
 import javafx.scene.Parent;
+import javafx.scene.accessibility.Action;
 import javafx.scene.accessibility.Attribute;
 import javafx.scene.accessibility.Role;
 import javafx.scene.control.*;
@@ -1409,6 +1410,16 @@
                 default: return super.accGetAttribute(attribute, parameters); 
             }
         }
+
+        @Override
+        public void accExecuteAction(Action action, Object... parameters) {
+            switch (action) {
+                case FIRE: 
+                    doSelect();
+                    break;
+                default: super.accExecuteAction(action);
+            }
+        }
     }