diff options
| author | 2025-02-03 00:51:57 +0100 | |
|---|---|---|
| committer | 2025-02-03 00:51:57 +0100 | |
| commit | d28af5739bfaafa141dc8071a0c910e8693f3b3c (patch) | |
| tree | df302a880f8b47123a0f2d2854ec36e1e64242d5 /winit/src/program | |
| parent | db990b77e4aa8d001c774703301342c951d6caaa (diff) | |
| download | iced-d28af5739bfaafa141dc8071a0c910e8693f3b3c.tar.gz iced-d28af5739bfaafa141dc8071a0c910e8693f3b3c.tar.bz2 iced-d28af5739bfaafa141dc8071a0c910e8693f3b3c.zip | |
Track pre-edits separately from focus in text inputs
Diffstat (limited to '')
| -rw-r--r-- | winit/src/program/window_manager.rs | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs index 32faa059..08d19d16 100644 --- a/winit/src/program/window_manager.rs +++ b/winit/src/program/window_manager.rs @@ -205,9 +205,11 @@ where      pub fn request_input_method(&mut self, input_method: InputMethod) {          match input_method {              InputMethod::None => {} -            InputMethod::Disabled => self.raw.set_ime_allowed(false), +            InputMethod::Disabled => { +                self.raw.set_ime_allowed(false); +            }              InputMethod::Allowed | InputMethod::Open { .. } => { -                self.raw.set_ime_allowed(true) +                self.raw.set_ime_allowed(true);              }          } | 
