RFR: 8315655: [macos] Right click and dragging over a component with a popup menu will open the popup [v5]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Jun 7 07:38:13 UTC 2024


On Thu, 6 Jun 2024 18:28:12 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Issue is a mouse drag will trigger a popup in macos, but not in linux or windows.
>> The solution is to add a check for a mouse pressed event to show popup and prevent mouse entered events from triggering the popup
>
> Alisen Chung has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - update copyright years
>  - automated test
>  - changed test to automatic

test/jdk/javax/swing/JPopupMenu/MouseDragPopupTest.java line 39:

> 37:  * @test
> 38:  * @bug 8315655
> 39:  * @requires (os.family == "mac")

Also, is there any need to restrict it to mac as I guess in other platforms, this test should anyway pass...Did you check?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19569#discussion_r1630776745


More information about the client-libs-dev mailing list