From a6ff7571c8b9a22dcf787a2e87c6c5284105c8e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Klaa=C3=9Fen?= Date: Tue, 16 Jan 2024 13:29:07 +0100 Subject: [PATCH] Added support for CTRL-W --- src/test/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/mod.rs b/src/test/mod.rs index 01295d9..bdded48 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -96,8 +96,10 @@ impl Test { word.progress.pop(); } } - // CTRL-BackSpace - KeyCode::Char('h') if key.modifiers.contains(KeyModifiers::CONTROL) => { + // CTRL-BackSpace and CTRL-W + KeyCode::Char('h') | KeyCode::Char('w') + if key.modifiers.contains(KeyModifiers::CONTROL) => + { if self.words[self.current_word].progress.is_empty() { self.last_word(); }