RFR: 8324232: KeyEvent.getCode() is null inside JFXPanel
John Hendrikx
jhendrikx at openjdk.org
Sat Jun 1 18:41:06 UTC 2024
On Sat, 1 Jun 2024 18:15:56 GMT, Martin Fox <mfox at openjdk.org> wrote:
> JavaFX uses a table to map from an AWT integer key code to a JavaFX KeyCode. If AWT provides a code that's not in the table JavaFX attempts to use a KeyCode of null when constructing the KeyEvent which raises an exception. This PR just checks for null and changes it to KeyCode.UNDEFINED.
Which key is it that causes this? There is a ticket https://bugs.openjdk.org/browse/JDK-8090319 that suggests completing the missing key codes is also an option.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1470#issuecomment-2143544040
More information about the openjfx-dev
mailing list