diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/question.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index 55c099d..81347b5 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -144,6 +144,14 @@ pub fn ask<B: Backend>( Key::Backspace => { state.input.pop(); } + Key::Ctrl('u') => { + state.input.clear(); + } + Key::Ctrl('w') => { + let mut words = state.input.split_whitespace().collect::<Vec<&str>>(); + words.truncate(words.len() - 1); + state.input = words.join(" "); + } _ => {} }, Answer::Difficulty { |