Integrated: 8290399: [macos] Aqua LAF does not fire an action event if combo box menu is displayed

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Jul 28 06:48:27 UTC 2022


On Tue, 19 Jul 2022 08:13:23 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> When the user types Enter in an editable combo box, Aqua LAF fails to fire an action event if the menu is displayed.
> It seems actionEvent is fired when popup menu is not visible. 
> Fix is to make sure ActionEvent is fired irrespective of popup visiblity as is done in other L&F 
> (for ex, in MetalL&F it calls "ENTER", JTextField.notifyAction, where it calls postActionEvent irrespectively)
> https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/JTextField.java#L856

This pull request has now been integrated.

Changeset: 93f96d8c
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/93f96d8c9eb2c7e1579cc99002eefb6bf019742b
Stats:     95 lines in 2 files changed: 93 ins; 2 del; 0 mod

8290399: [macos] Aqua LAF does not fire an action event if combo box menu is displayed

Reviewed-by: azvegint, prr

-------------

PR: https://git.openjdk.org/jdk/pull/9551



More information about the client-libs-dev mailing list