diff --git a/src/ui.rs b/src/ui.rs index 4c80f7d..a7c2f49 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -267,6 +267,13 @@ pub fn text_input( if d.is_key_pressed(KeyboardKey::KEY_BACKSPACE) && !text.is_empty() { changed = true; text.pop(); + if d.is_key_down(KeyboardKey::KEY_LEFT_CONTROL) { + while let Some(c) = text.pop() { + if c == ' ' { + break; + } + } + } } if text.len() < max_len { let char_code = unsafe { ffi::GetCharPressed() };