RFR: 8305418: [Linux] Replace obsolete XIM as Input Method Editor [v31]

Helly Guo duke at openjdk.org
Thu Dec 12 23:56:50 UTC 2024


On Thu, 12 Dec 2024 15:25:29 GMT, Martin Fox <mfox at openjdk.org> wrote:

>> ![pic_20241212193112](https://github.com/user-attachments/assets/7b9233f9-3af5-42d5-89f9-9f85248d68dd)
>> 
>> The option is surrounded by a red box.
>
> @hellyguo Thanks so much for tracking this down and providing all the details. I would like to better understand what that checkbox does but I might not be able to get to that until next week.
> 
> JavaFX handles keyboard entry using two mechanisms, KeyEvents and InputMethodEvents. This corresponds to the way Windows works. On Mac and Linux the OS only uses one channel (basically InputMethodEvents) and we have to apply a simple heuristic to map this to JavaFX's two-channel approach. This checkbox seems to be upsetting that logic.
> 
> (I work on the Mac side of this and @tsayao works on the Linux side. I just do testing on Linux because it's easy for me to create new virtual machines.)

Anyway, current solution without checking `im_ctx.on_preedit` can work well. I backported it to `jfx22` and it worked well. Thanks again. And hope for the final solution.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1080#discussion_r1883045965


More information about the openjfx-dev mailing list