egui icon indicating copy to clipboard operation
egui copied to clipboard

Cann't shift IME in Windows 11

Open xBINj opened this issue 3 years ago • 3 comments

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));
        });
    }
}

xBINj avatar Nov 17 '22 09:11 xBINj

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.

KentaTheBugMaker avatar Nov 18 '22 11:11 KentaTheBugMaker

Will egui support IME in next release? thanks~

xBINj avatar Nov 21 '22 01:11 xBINj

Will egui support IME in next release? thanks~

The new released 0.20.1 version has supported IME.

qihaiyan avatar Dec 21 '22 14:12 qihaiyan

This issue likely needs to be closed. @emilk

liquidhelium avatar Feb 14 '24 11:02 liquidhelium