From 761ce14125f0e4ecffbfaf3bf82b4b406f5aa769 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Mon, 11 Nov 2024 22:13:32 +0100 Subject: impl popup for keybindings/messages --- src/tui/commands.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tui/commands.rs') 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 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, } -- cgit v1.2.3