mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Fix: problems pointed out by Copilot
https://github.com/emilk/egui/pull/8083#pullrequestreview-4364725473
This commit is contained in:
@@ -105,19 +105,17 @@ impl TextAgent {
|
||||
active_range_chars,
|
||||
});
|
||||
runner.input.raw.events.push(event);
|
||||
runner.needs_repaint.repaint_asap();
|
||||
} else {
|
||||
if text.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
if !event.is_composing() {
|
||||
input.set_value("");
|
||||
let event = egui::Event::Text(text);
|
||||
runner.input.raw.events.push(event);
|
||||
runner.needs_repaint.repaint_asap();
|
||||
}
|
||||
input.set_value("");
|
||||
let event = egui::Event::Text(text);
|
||||
runner.input.raw.events.push(event);
|
||||
}
|
||||
|
||||
runner.needs_repaint.repaint_asap();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user