Fix IME input handling (#20)

bevy_winit does not call `set_ime_allowed()` during initial window
creation when `Window::ime_enabled` is `true`. The `changed_windows`
system only fires when the value differs from cache, but the cache
is initialized from the window itself so they start equal. Since
winit 0.27+ requires explicit `set_ime_allowed(true)`, no Ime events
were ever generated.
This commit is contained in:
elm
2026-02-06 23:52:05 +09:00
committed by GitHub
parent 2afc7bb0de
commit 40a3455f55
5 changed files with 33 additions and 32 deletions

View File

@@ -104,7 +104,7 @@ fn ime_event(
is_ime_commiting.0 = true;
}
Ime::Disabled { .. } => {
browsers.ime_finish_composition(false);
browsers.ime_cancel_composition();
}
_ => {}
}