Skip to content

Commit

Permalink
Update builder.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Sep 28, 2024
1 parent f8bfef8 commit ca89343
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,10 @@ fn events(
let mut events = ui.input(|i| i.filtered_events(&event_filter));

if state.ime_enabled {
remove_ime_incompatible_events(&mut events);
if ui.visuals().text_edit.ime_key_handling {
remove_ime_incompatible_events(&mut events);
}

// Process IME events first:
events.sort_by_key(|e| !matches!(e, Event::Ime(_)));
}
Expand Down

0 comments on commit ca89343

Please sign in to comment.