On Fri, 25 Aug 2023 17:53:51 GMT, Damon Nguyen <[email protected]> wrote:

> Previously, a new key combination involving the option key was added to Aqua 
> LAF for JTextAreas. In doing so, some code was removed that created this 
> regression. The regression caused the right option key on Mac OS to 
> incorrectly show another KeyPressed event instead of a KeyReleased event when 
> pressing and releasing the key. Additionally, the location of the key was 
> 'standard' instead of 'right'. Adding back the key mask and its following 
> code resolves the issue and doesn't cause any other CI tests to fail.
> 
> The headful test included displays the key events as they're pressed. After 
> the changes, the test correctly shows the right option key's KeyPressed and 
> KeyReleased events and shows the location as 'right'.

This pull request has now been integrated.

Changeset: 83b01cf3
Author:    Damon Nguyen <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/83b01cf3c28bc38b953d6e7e41bb7d730d91179f
Stats:     185 lines in 2 files changed: 184 ins; 0 del; 1 mod

8311922: [macOS] right-Option key fails to generate release event

Reviewed-by: honkar, prr

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

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

Reply via email to