Skip to content

Commit

Permalink
implement ctrl-d and ctrl-u for page scrolling (#30) (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaco-Minnaar authored Feb 17, 2024
1 parent 85077ef commit ce19c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ impl App {
(KeyCode::Down, _) | (KeyCode::Char('j'), _) => self.on_down(),
(KeyCode::Up, _) | (KeyCode::Char('k'), _) => self.on_up(),
(KeyCode::Right, _) | (KeyCode::Char('l'), _) => self.on_right(),
(KeyCode::PageUp, _) => {
(KeyCode::PageUp, _) | (KeyCode::Char('u'), KeyModifiers::CONTROL) => {
self.page_up();
Ok(())
}
(KeyCode::PageDown, _) => {
(KeyCode::PageDown, _) | (KeyCode::Char('d'), KeyModifiers::CONTROL) => {
self.page_down();
Ok(())
}
Expand Down

0 comments on commit ce19c29

Please sign in to comment.