summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-03 00:51:57 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-03 00:51:57 +0100
commitd28af5739bfaafa141dc8071a0c910e8693f3b3c (patch)
treedf302a880f8b47123a0f2d2854ec36e1e64242d5 /winit
parentdb990b77e4aa8d001c774703301342c951d6caaa (diff)
downloadiced-d28af5739bfaafa141dc8071a0c910e8693f3b3c.tar.gz
iced-d28af5739bfaafa141dc8071a0c910e8693f3b3c.tar.bz2
iced-d28af5739bfaafa141dc8071a0c910e8693f3b3c.zip
Track pre-edits separately from focus in text inputs
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program/window_manager.rs6
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);
}
}