diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 9b45fca..8489c57 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,20 +104,20 @@ fn handle_events(ui: &mut UI) -> io::Result<bool> { KeyCode::Char('q') => { return Ok(true); } - KeyCode::Char('j') => { + KeyCode::Char('j') | KeyCode::Down => { if ui.scroll < (ui.max_lines - ui.height + 1) { ui.scroll += 1; } } - KeyCode::Char('J') => { + KeyCode::Char('J') | KeyCode::Char('G') => { ui.scroll = ui.max_lines - ui.height + 1; } - KeyCode::Char('k') => { + KeyCode::Char('k') | KeyCode::Up => { if ui.scroll > 1 { ui.scroll -= 1; } } - KeyCode::Char('K') => { + KeyCode::Char('K') | KeyCode::Char('0') => { ui.scroll = ui.height; } _ => {} |