Q: missing APIs needed for implementation of a rich text control
Martin Fox
martin at martinfox.com
Fri Jan 27 21:55:05 UTC 2023
Andy,
Could you elaborate on why you want to see KeyEvents for dead keys on Linux? https://bugs.openjdk.org/browse/JDK-8172867
On Windows dead keys are delivered as KeyEvents. The dead keys generate KEY_PRESSED events and the final composed character is delivered in a KEY_TYPED event. This reflects how the OS handles dead keys.
On Mac dead keys are handled using InputMethodEvents. The dead keys generated composed events and the final character is presented as committed text. This also reflects how the OS handles dead keys.
X11 follows the Mac model but JavaFX does not implement this completely (it only sends the final commit event). I haven’t delved into the code in detail but I suspect fleshing out the InputMethodEvent path to match the Mac would be much easier than trying to force Linux to deliver the same event stream as Windows.
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230127/3351e97f/attachment.htm>
More information about the openjfx-dev
mailing list