-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Reference: servo/servo#24724
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.