diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index abadd9ee5c2..e8667702ead 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -348,7 +348,14 @@ impl State { .push(egui::Event::Ime(egui::ImeEvent::Enabled)); self.has_sent_ime_enabled = true; } - winit::event::Ime::Preedit(_, None) => {} + winit::event::Ime::Preedit(_, None) => { + if !self.has_sent_ime_enabled { + self.egui_input + .events + .push(egui::Event::Ime(egui::ImeEvent::Enabled)); + self.has_sent_ime_enabled = true; + } + } winit::event::Ime::Preedit(text, Some(_cursor)) => { if !self.has_sent_ime_enabled { self.egui_input