RFR: 8324232: KeyEvent.getCode() is null inside JFXPanel

Martin Fox mfox at openjdk.org
Sat Jun 1 19:04:06 UTC 2024


On Sat, 1 Jun 2024 18:38:16 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

> 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.

The original bug report was for letter keys on layouts that don't generate Latin characters like Russian or Greek. On Windows AWT handles these keys by assigning a Latin key code (so shortcuts like Ctrl-A continue to work) and separately providing an extended key code based on the Unicode value. On Mac AWT is dropping the ball by not providing a Latin key code.

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

PR Comment: https://git.openjdk.org/jfx/pull/1470#issuecomment-2143550594


More information about the openjfx-dev mailing list