[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Integrated: 8290399: [macos] Aqua LAF does not fire an action event if combo box menu is displayed
From:       Prasanta Sadhukhan <psadhukhan () openjdk ! org>
Date:       2022-07-28 6:48:27
Message-ID: 3RmlUUlMgoZoUO3OLtdDDQbPIj0FVSERO27dE2FvA0o=.5b0ebc85-0cd7-4186-9641-eb6ae247512e () github ! com
[Download RAW message or body]

On Tue, 19 Jul 2022 08:13:23 GMT, Prasanta Sadhukhan <psadhukhan@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@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic