Skip to content

Commit

Permalink
Update builder.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Apr 17, 2024
1 parent a4339a3 commit dd56f3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ fn events(

Event::ImeEnable | Event::CompositionStart => {
state.has_ime = true;
state.ime_target_id = id;
state.ime_cursor_range = cursor_range;
None
}
Expand Down Expand Up @@ -984,6 +985,7 @@ fn events(
state.has_ime = false;
let mut ccursor;
if !prediction.is_empty()
&& state.ime_target_id == id
&& cursor_range.secondary.ccursor.index
== state.ime_cursor_range.secondary.ccursor.index
{
Expand Down

0 comments on commit dd56f3b

Please sign in to comment.