feat(tui): support Ctrl+Backspace in text inputs
This commit is contained in:
1 parent
315567a79c
commit
cccf65981a
13 files changed
+99
-16
No files matched your search
@@ -934,7 +934,7 @@ pub fn handle_key(key_event: &KeyEvent, state: &mut DiscoveryState) -> bool {
|
||||
match key_event.code {
|
||||
KeyCode::Enter => state.search.confirm(),
|
||||
KeyCode::Esc => state.search.deactivate(),
|
||||
KeyCode::Backspace => state.search.pop(),
|
||||
KeyCode::Backspace => state.search.backspace(key_event.modifiers),
|
||||
KeyCode::Char(c) => state.search.push(c),
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user