From 6cc43dbdd455ecf7b7a9a5de47e4f17769048250 Mon Sep 17 00:00:00 2001 From: ItsEthra <107059409+ItsEthra@users.noreply.github.com> Date: Fri, 9 Dec 2022 11:54:00 +0300 Subject: [PATCH] Fixed backspace repeat with TextEdit (#2416) --- crates/egui/src/widgets/text_edit/builder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/egui/src/widgets/text_edit/builder.rs b/crates/egui/src/widgets/text_edit/builder.rs index bc4f768a..97737116 100644 --- a/crates/egui/src/widgets/text_edit/builder.rs +++ b/crates/egui/src/widgets/text_edit/builder.rs @@ -919,6 +919,10 @@ fn events( modifiers, } => on_key_press(&mut cursor_range, text, galley, *key, modifiers), + Event::KeyRepeat { key, modifiers } => { + on_key_press(&mut cursor_range, text, galley, *key, modifiers) + } + Event::CompositionStart => { state.has_ime = true; None