diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index 079a2404836..f9feae9a472 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -291,7 +291,7 @@ impl State { .events .push(egui::Event::CompositionEnd(text.clone())); } - winit::event::Ime::Preedit(text, ..) => { + winit::event::Ime::Preedit(text, Some(_)) => { if !self.input_method_editor_started { self.input_method_editor_started = true; self.egui_input.events.push(egui::Event::CompositionStart); @@ -300,6 +300,7 @@ impl State { .events .push(egui::Event::CompositionUpdate(text.clone())); } + winit::event::Ime::Preedit(_, None) => {} }; EventResponse {