aboutsummaryrefslogtreecommitdiff
path: root/src/tui/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/commands.rs')
-rw-r--r--src/tui/commands.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/tui/commands.rs b/src/tui/commands.rs
index 626b11b..f7fd75b 100644
--- a/src/tui/commands.rs
+++ b/src/tui/commands.rs
@@ -132,16 +132,24 @@ impl From<KeyEvent> for CmdAction {
// Switch selected area
KeyCode::Tab => Self::ToggleArea,
KeyCode::BackTab => Self::ToggleArea,
+ // // Enter search mode
+ // KeyCode::Char('/') => Self::Input(InputCmdAction::Enter),
+ // KeyCode::Char('f') => {
+ // if key_event.modifiers == KeyModifiers::CONTROL {
+ // Self::Input(InputCmdAction::Enter)
+ // } else {
+ // Self::Nothing
+ // }
+ // }
// Enter search mode
- KeyCode::Char('/') => Self::Input(InputCmdAction::Enter),
+ KeyCode::Char('/') => Self::SearchList,
KeyCode::Char('f') => {
if key_event.modifiers == KeyModifiers::CONTROL {
- Self::Input(InputCmdAction::Enter)
+ Self::SearchList
} else {
Self::Nothing
}
}
- // KeyCode::Backspace => Self::Input(InputCommand::Resume(Event::Key(key_event))),
// Confirm selection
KeyCode::Enter => Self::Confirm,
// Reset lists/tables