Skip to content

Commit

Permalink
Clear IME if response lost focus
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Mar 23, 2024
1 parent 635faac commit 237bbad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/term/src/widget/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 237bbad

Please sign in to comment.