RFR: 8358813: JPasswordField identifies spaces in password via delete shortcuts [v2]
Alexey Ivanov
aivanov at openjdk.org
Tue Aug 5 20:24:04 UTC 2025
On Tue, 5 Aug 2025 20:17:12 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java line 162:
>>
>>> 160: "alt BACK_SPACE", null,
>>> 161: "ctrl W", null,
>>> 162: "alt DELETE", null
>>
>> The change "works" for the test, but I'm not exactly sure what's changed here. When I make my own local test with a JPasswordField, the key binds don't do anything on Aqua. The `CTRL+W` seems to just input `W`. `ALT+BACK_SPACE` seems to just backspace the character before the carat. Can you help me understand this?
>>
>> Also, I guess you can end in a trailing comma to match the previous format if you want. Either is OK.
>
> @DamonGuy I can reproduce the problem with the test, `PasswordSelectionWordTest.java`, attached to [JDK-8358813](https://bugs.openjdk.org/browse/JDK-8358813).
> Also, I guess you can end in a trailing comma to match the previous format if you want. Either is OK.
This is a nice suggestion.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25688#discussion_r2255259873
More information about the client-libs-dev
mailing list