RFR: 8315701: [macos] Regression: KeyEvent has different keycode on different keyboard layouts [v2]
Alisen Chung
achung at openjdk.org
Tue Nov 28 17:46:21 UTC 2023
On Thu, 16 Nov 2023 18:24:07 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
>>
>> updated test to provide information on which key was pressed
>
> test/jdk/java/awt/event/KeyEvent/AcceleratorTest/AcceleratorTest.java line 1:
>
>> 1: /*
>
> Is it possible to print which particular event fired? It could be useful for debugging.
>
> I'd create a list of `Action`s with the names and shortcuts (as a KeyStroke and as string for printing) and then print each action name with corresponding shortcut. Or create a list of objects with corresponding data. I didn't think it through.
I've just updated the test to print the ActionEvent's getActionCommand, so there is information on which key was pressed
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16664#discussion_r1408149928
More information about the client-libs-dev
mailing list