Added Page Up and Page Down navigation (#115)

* Added `Page Up` and `Page Down` navigation
This commit is contained in:
Janszczyrek
2021-10-30 20:03:04 +02:00
committed by GitHub
parent acc4e08881
commit 6297d57984
2 changed files with 4 additions and 2 deletions

View File

@@ -52,12 +52,12 @@ func Navigate(state State, keyPress string) State {
Page: targetSlide,
TotalSlides: state.TotalSlides,
}
case " ", "down", "j", "right", "l", "enter", "n":
case " ", "down", "j", "right", "l", "enter", "n", "pgdown":
return State{
Page: navigateNext(state),
TotalSlides: state.TotalSlides,
}
case "up", "k", "left", "h", "p":
case "up", "k", "left", "h", "p", "pgup":
return State{
Page: navigatePrevious(state),
TotalSlides: state.TotalSlides,