Skip to content

Improve IME event handling #1293

@garasubo

Description

@garasubo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C - needs discussionDirection must be ironed outDS - x11Affects the X11 backend, or generally free Unix platformsS - apiDesign and usabilityS - enhancementWouldn't this be the coolest?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions