On Thu, 12 Dec 2024 23:53:55 GMT, Helly Guo <d...@openjdk.org> wrote:

>> @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.

This option sets if editing happens on the application or in the IME window.

Application:
![image](https://github.com/user-attachments/assets/d44364ad-4090-4e1d-9fcf-5fa7fbd8a306)


IME Window:
![image](https://github.com/user-attachments/assets/692536bf-e8d2-467d-9332-0a6f04f1eb9a)

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

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

Reply via email to