RFR: 8356652: Input field ignores custom input source characters
Martin Fox
mfox at openjdk.org
Wed May 14 15:36:07 UTC 2025
Under the hood the Keyman input method appears as a US English keyboard layout. The characters attached to an NSEvent are always US English Roman even if the selected Keyman layout is, say, Hebrew or Dvorak. Keyman sends the correct Hebrew or Dvorak character to insertText:replacementRange: instead.
This PR special-cases the Keyman layout, detecting it using the same method that AWT does. When Keyman is active Glass records the insertText: character and uses that when sending out KeyEvents.
-------------
Commit messages:
- Merge remote-tracking branch 'upstream/master' into keyman
- Routing insertText character to KeyEvents for Keyman input method
Changes: https://git.openjdk.org/jfx/pull/1805/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1805&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8356652
Stats: 33 lines in 4 files changed: 27 ins; 1 del; 5 mod
Patch: https://git.openjdk.org/jfx/pull/1805.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1805/head:pull/1805
PR: https://git.openjdk.org/jfx/pull/1805
More information about the openjfx-dev
mailing list