You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to implement compositions event handling for the browser engine, I realized that current event interface doesn't have enough information about IME events.
To implement this, we need to know what is the current content in IME when the user edit something in IME. But seems glutin::WindowEvent::KeyboardInput doesn't have interface to get that information. It would be nice to send more information when IME status was updated.
Currently, winit submits character information when IME edit completes. But to implement compositions event handling, those information should be available when updating the status as well. In addition, winit sends charcter information for each characters (e.g. if the content in IME was "あああ", it sends 3 ReceiveCharacter('あ') event) . It would be nice to have send this information as a string.
I tested this on my Linux with X11, but all other platforms might have the same issues.
I'm not sure I fully understood the discussion on #753, but the most concern there is something how to represent pressed keys rather than IME status. I'm thinking about adding a new member into KeyboardEvent to have IME status corresponding to that keyboard event. What do you think? @Osspial
The X11 implementation has been merged (to the composition-event branch) and I've opened a tracking issue (#1497) to coordinate implementation of this API for each remaining platform. Thank you, @garasubo, for your work on this API and the X11 implementation.
I am now closing this issue. Any further discussion of this feature should take place in #1497.
Activity
goddessfreya commentedon Nov 29, 2019
cc @murarth, I'm not familiar with how IME works, are you?
murarth commentedon Nov 29, 2019
I'm not at all familiar with IME, but I'll read some docs and see what I can do for this issue.
garasubo commentedon Dec 2, 2019
Thanks. I updated the description to make it clear what I want to do.
Osspial commentedon Dec 2, 2019
#753 has a lot of good discussion on both IME handling and the broader context of how to improve the keyboard input API.
garasubo commentedon Dec 3, 2019
That issue looks like this issue as well, but haven't updated for a while. Is there any ongoing work related to that issue?
garasubo commentedon Dec 6, 2019
I'm not sure I fully understood the discussion on #753, but the most concern there is something how to represent pressed keys rather than IME status. I'm thinking about adding a new member into
KeyboardEventto have IME status corresponding to that keyboard event. What do you think? @Osspialgarasubo commentedon Jan 24, 2020
Submitted a PR for adding new IME events for X11. Could anyone review it?
murarth commentedon Mar 6, 2020
The X11 implementation has been merged (to the
composition-eventbranch) and I've opened a tracking issue (#1497) to coordinate implementation of this API for each remaining platform. Thank you, @garasubo, for your work on this API and the X11 implementation.I am now closing this issue. Any further discussion of this feature should take place in #1497.