Skip to content

Commit

Permalink
Update builder.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored May 19, 2024
1 parent 41f93b1 commit 7325f86
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions crates/egui/src/widgets/text_edit/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,24 +834,6 @@ fn events(
};
let events = ime_front_events(filter_events);

/*
if state.ime_enabled {
dbg!(&events);
}
if state.ime_enabled {
events = ime_only_events(events);
}
*/
/*
if state.ime_enabled {
events = ime_enabled_filter_events(events);
}
if state.ime_enabled && !is_contain_ime_events(&events) {
dbg!(&events);
// return (any_change, cursor_range);
}
*/

for event in &events {
let did_mutate_text = match event {
// First handle events that only changes the selection cursor, not the text:
Expand Down Expand Up @@ -1061,7 +1043,7 @@ fn ime_enabled_filter_events(events: Vec<Event>) -> Vec<Event> {
| Event::Key {
key: Key::Backspace,
..
} => {}
} => { dbg!(&event); }
_ => filter_events.push(event),
}
}
Expand Down

0 comments on commit 7325f86

Please sign in to comment.