RFR: 8356652: Input field ignores custom input source characters
Andy Goryachev
angorya at openjdk.org
Thu May 15 15:26:02 UTC 2025
On Wed, 14 May 2025 15:31:46 GMT, Martin Fox <mfox at openjdk.org> wrote:
> 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.
What's interesting, not all Hebrew keys produce Latin text. For example, 'f' key does generate `שׂ` as expected (without the fix). Is that the situation described by the comment
// Longer strings are sent out above as commits.
?
With the fix, both keyman and standard macOS text input work (including Japanese IME popup).
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1805#issuecomment-2884222490
More information about the openjfx-dev
mailing list