Skip to content

Commit

Permalink
Added support for CTRL-W
Browse files Browse the repository at this point in the history
  • Loading branch information
klaassen-david authored and max-niederman committed Feb 2, 2024
1 parent 2df781f commit 2a68484
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2a68484

Please sign in to comment.