feat(tui): show help when F1 is pressed

This commit is contained in:
Orhun Parmaksız 2022-02-08 00:45:22 +03:00
parent df0a3f742f
commit 88f6e3ba56
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -81,6 +81,7 @@ impl Command {
}
} else {
match key {
Key::Char('?') | Key::F(1) => Command::Help,
Key::Up | Key::Char('k') => Command::Scroll(ScrollArea::List, Direction::Up, 1),
Key::Down | Key::Char('j') => Command::Scroll(ScrollArea::List, Direction::Down, 1),
Key::PageUp => Command::Scroll(ScrollArea::List, Direction::Up, 4),