Withdrawn: 8274967: KeyCharacterCombinations for punctuation and symbols fail on non-US keyboards
duke
duke at openjdk.org
Sat May 27 02:52:08 UTC 2023
On Mon, 15 Nov 2021 20:13:11 GMT, Martin Fox <duke at openjdk.org> wrote:
> The code that maps from a Windows virtual key code to a Java key code in `getKeyCodeForChar` did not match the similar code in `ViewContainer::HandleViewKeyEvent`. The OEM keys are assigned to printable punctuation and symbols in ways which vary across layouts and even keyboards. To determine the correct Java key code you have to query the layout to determine the character the key would generate without modifiers and map that character to the key code. `ViewContainer::HandleViewKeyEvent` did this, `getKeyCodeForChar` did not. This PR copies a few snippets of code from `ViewContainer::HandleViewKeyEvent` to make the two algorithms match.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jfx/pull/672
More information about the openjfx-dev
mailing list