From 492fa10e11b94e226b5a6b3c682e9ef9f379eb3b Mon Sep 17 00:00:00 2001 From: itsjunetime Date: Sun, 26 May 2024 20:17:58 -0600 Subject: [PATCH] Add backspacing for inputting search term --- src/tui.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tui.rs b/src/tui.rs index 9799c01..a5e3305 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -349,6 +349,10 @@ impl Tui { term.push(c); Some(InputAction::Redraw) } + KeyCode::Backspace if let BottomMessage::Input(InputCommand::Search(ref mut term)) = self.bottom_msg => { + term.pop(); + Some(InputAction::Redraw) + }, KeyCode::Char(c) if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) = self.bottom_msg =>