Cann't shift IME in Windows 11
Cargo.toml: [dependencies] egui = "0.19" egui_extras = { version = "0.19", features = ["image", "svg"] } eframe = "0.19"
Describe the bug: I run the sample codes "hello_world", and use Ctrl+Space to shift IME(Microsoft Pinyin Input Method) for inputting chinese character, but it failed, it only input a space in the text_edit_singleline.
Desktop (please complete the following information):
- OS: Windows 11 Home Edition(Simple Chinese)
- Version: 22H2
- System Version: 22621.819
Codes: let options = eframe::NativeOptions::default(); eframe::run_native( "My egui App", options, Box::new(|_cc| Box::new(MyApp::default())), );
struct MyApp {
name: String,
age: i32,
}
impl Default for MyApp {
fn default() -> Self {
Self {
name: Default::default(),
age: Default::default(),
}
}
}
impl eframe::App for MyApp {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
egui::CentralPanel::default().show(ctx, |ui| {
ui.heading("My egui Application");
ui.horizontal(|ui| {
ui.label("Your name:");
ui.text_edit_singleline(&mut self.name);
});
ui.add(egui::Slider::new(&mut self.age, 0..=120).text("age"));
if ui.button("Click each year").clicked() {
self.age += 1;
}
ui.label(format!("Hello '{}', age {}", self.name, self.age));
});
}
}
egui version 0.19 is not support IME. some mistake made in egui-winit 0.19 release. egui contributors update winit dependency to 0.27.2 but not call set_ime_allowed(true) and can't process winit IME event.
Will egui support IME in next release? thanks~
Will egui support IME in next release? thanks~
The new released 0.20.1 version has supported IME.
This issue likely needs to be closed. @emilk