From 237bbadb8c029335488be5ef6c4e14ba307109bd Mon Sep 17 00:00:00 2001 From: Speak2Erase Date: Fri, 22 Mar 2024 22:59:31 -0700 Subject: [PATCH] Clear IME if response lost focus --- crates/term/src/widget/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/term/src/widget/mod.rs b/crates/term/src/widget/mod.rs index 0d8ca720..fc32d529 100644 --- a/crates/term/src/widget/mod.rs +++ b/crates/term/src/widget/mod.rs @@ -373,6 +373,7 @@ where let mut cursor_shape = cursor_style.shape; if !response.has_focus() { cursor_shape = CursorShape::HollowBlock; + self.ime_text = None; } self.stable_time += ui.input(|i| i.stable_dt.min(0.1));