aboutsummaryrefslogtreecommitdiff
path: root/src/tui/commands.rs
diff options
context:
space:
mode:
authorlukeflo2024-11-11 22:13:32 +0100
committerlukeflo2024-11-14 09:35:45 +0100
commit761ce14125f0e4ecffbfaf3bf82b4b406f5aa769 (patch)
treef78f106d93bfb2466f1d7785b3080eb4b0e333d9 /src/tui/commands.rs
parent45d85162e455db37f9263088a7703d614969b373 (diff)
downloadbibiman-761ce14125f0e4ecffbfaf3bf82b4b406f5aa769.tar.gz
bibiman-761ce14125f0e4ecffbfaf3bf82b4b406f5aa769.zip
impl popup for keybindings/messages
Diffstat (limited to 'src/tui/commands.rs')
-rw-r--r--src/tui/commands.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui/commands.rs b/src/tui/commands.rs
index dc6b2c8..6a2ab13 100644
--- a/src/tui/commands.rs
+++ b/src/tui/commands.rs
@@ -67,6 +67,8 @@ pub enum CmdAction {
Input(InputCmdAction),
// Hexdump command.
Exit,
+ // Show keybindings
+ ShowHelp,
// Do nothing.
Nothing,
}
@@ -148,6 +150,8 @@ impl From<KeyEvent> for CmdAction {
KeyCode::Char('y') => Self::YankItem,
// Sort entry table by selected col
KeyCode::Char('s') => Self::SortList,
+ // Show help popup
+ KeyCode::Char('?') => Self::ShowHelp,
// Else do nothing
_ => Self::Nothing,
}