提交 2697c424 编写于 作者: A alexsch

8068040: [macosx] Combo box consuming ENTER key

Reviewed-by: serb, azvegint
上级 243cf6fb
...@@ -273,7 +273,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable { ...@@ -273,7 +273,7 @@ public class AquaComboBoxUI extends BasicComboBoxUI implements Sizeable {
actionMap.put("aquaSelectNext", highlightNextAction); actionMap.put("aquaSelectNext", highlightNextAction);
actionMap.put("aquaSelectPrevious", highlightPreviousAction); actionMap.put("aquaSelectPrevious", highlightPreviousAction);
actionMap.put("aquaEnterPressed", triggerSelectionAction); actionMap.put("enterPressed", triggerSelectionAction);
actionMap.put("aquaSpacePressed", toggleSelectionAction); actionMap.put("aquaSpacePressed", toggleSelectionAction);
actionMap.put("aquaSelectHome", highlightFirstAction); actionMap.put("aquaSelectHome", highlightFirstAction);
......
...@@ -214,7 +214,7 @@ public class AquaKeyBindings { ...@@ -214,7 +214,7 @@ public class AquaKeyBindings {
"PAGE_DOWN", "aquaSelectPageDown", "PAGE_DOWN", "aquaSelectPageDown",
"HOME", "aquaSelectHome", "HOME", "aquaSelectHome",
"END", "aquaSelectEnd", "END", "aquaSelectEnd",
"ENTER", "aquaEnterPressed", "ENTER", "enterPressed",
"UP", "aquaSelectPrevious", "UP", "aquaSelectPrevious",
"KP_UP", "aquaSelectPrevious", "KP_UP", "aquaSelectPrevious",
"DOWN", "aquaSelectNext", "DOWN", "aquaSelectNext",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册