mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
Add backspacing for inputting search term
This commit is contained in:
@@ -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 =>
|
||||||
|
|||||||
Reference in New Issue
Block a user