From ce19c2964142462129dd29ef6ffe398027eb3b4f Mon Sep 17 00:00:00 2001 From: Jaco Minnaar <40057059+Jaco-Minnaar@users.noreply.github.com> Date: Sat, 17 Feb 2024 21:19:46 +0200 Subject: [PATCH] implement ctrl-d and ctrl-u for page scrolling (#30) (#31) --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 35d8c8c..75fdc4b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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(()) }