Skip to content

Conversation

@mitoma
Copy link
Contributor

@mitoma mitoma commented Nov 29, 2025

Added an implementation for issue #4424 with the EditContext API.

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

@mitoma mitoma requested a review from daxpedda as a code owner November 29, 2025 01:23
@mitoma mitoma force-pushed the winit-issue-4424-support-ime-on-web branch from e29fe90 to 39e66bb Compare November 29, 2025 01:30
Implement Input Method Editor support for web platform to handle
text composition for non-Latin scripts (CJK, etc.):

- Add EditContext API integration with fallback detection
- Handle compositionstart/compositionend events for IME lifecycle
- Process textupdate events for composition text updates
- Implement Window::request_ime_update() with Enable/Update/Disable
- Emit WindowEvent::Ime(Preedit/Commit) to application

Note: Preedit events currently don't include cursor range information.

Fixes rust-windowing#4424
@mitoma mitoma force-pushed the winit-issue-4424-support-ime-on-web branch from 39e66bb to 5db890c Compare November 29, 2025 02:11
@mitoma
Copy link
Contributor Author

mitoma commented Dec 1, 2025

I've confirmed that this pull request does not work correctly in Microsoft Edge on Android and MacOS, so I'll move it back to Draft for now.

@mitoma mitoma marked this pull request as draft December 1, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant