<Swing Dev> [9] Review request for 8068040 [macosx] Combo box consuming ENTER key events
Alexander Scherbatiy
alexandr.scherbatiy at oracle.com
Mon Jan 12 15:02:41 UTC 2015
Hello,
Could you review the fix:
bug: https://bugs.openjdk.java.net/browse/JDK-8068040
webrev: http://cr.openjdk.java.net/~alexsch/8068040/webrev.00
BasicComboBoxUI has a special workaround to forward the enter pressed
event
on the editable combo box to the default button. The combobox editor
handler quires the "enterPressed" action
and executes it.
AquaComboBoxUI registers the enter action only with the
"aquaEnterPressed" key.
The possible solutions are:
- BasicComboBoxUI could use L&F dependent key for an enter action. It
may require adding some public API.
- Register a new handler to the comboboc editor. The actionPerformed
method of this handler will duplicate
Handler code from BasicComboBoxUI.
The proposed solution just registers the AquaComboBoxUI enter action
with the "enterPressed" key.
Thanks,
Alexandr.
More information about the swing-dev
mailing list