8068040: [macosx] Combo box consuming ENTER key
authoralexsch
Fri, 16 Jan 2015 19:11:10 +0400
changeset 28986 79f293b29d6a
parent 28985 33e7de0337d9
child 28987 a389d5a5bc45
8068040: [macosx] Combo box consuming ENTER key Reviewed-by: serb, azvegint
jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaComboBoxUI.java
jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java
--- a/jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaComboBoxUI.java	Fri Jan 16 13:53:44 2015 +0300
+++ b/jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaComboBoxUI.java	Fri Jan 16 19:11:10 2015 +0400
@@ -275,7 +275,7 @@
 
         actionMap.put("aquaSelectNext", highlightNextAction);
         actionMap.put("aquaSelectPrevious", highlightPreviousAction);
-        actionMap.put("aquaEnterPressed", triggerSelectionAction);
+        actionMap.put("enterPressed", triggerSelectionAction);
         actionMap.put("aquaSpacePressed", toggleSelectionAction);
 
         actionMap.put("aquaSelectHome", highlightFirstAction);
--- a/jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java	Fri Jan 16 13:53:44 2015 +0300
+++ b/jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java	Fri Jan 16 19:11:10 2015 +0400
@@ -214,7 +214,7 @@
             "PAGE_DOWN", "aquaSelectPageDown",
             "HOME", "aquaSelectHome",
             "END", "aquaSelectEnd",
-            "ENTER", "aquaEnterPressed",
+            "ENTER", "enterPressed",
             "UP", "aquaSelectPrevious",
             "KP_UP", "aquaSelectPrevious",
             "DOWN", "aquaSelectNext",