Add backspacing for inputting search term

This commit is contained in:
itsjunetime
2024-05-26 20:17:58 -06:00
parent c6d46af82d
commit 492fa10e11
+4
View File
@@ -349,6 +349,10 @@ impl Tui {
term.push(c); term.push(c);
Some(InputAction::Redraw) 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) KeyCode::Char(c)
if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) = if let BottomMessage::Input(InputCommand::GoToPage(ref mut page)) =
self.bottom_msg => self.bottom_msg =>