aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-10 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-10 20:20:20 +0200
commite88398672f73e25a0c9cd66ea3637d73e01727f3 (patch)
treea18d96400e5d761fd6576da700a16da411594730 /src/e_keys.go
parentgo (diff)
downloadhardflip-e88398672f73e25a0c9cd66ea3637d73e01727f3.tar.gz
hardflip-e88398672f73e25a0c9cd66ea3637d73e01727f3.tar.bz2
hardflip-e88398672f73e25a0c9cd66ea3637d73e01727f3.tar.xz
hardflip-e88398672f73e25a0c9cd66ea3637d73e01727f3.tar.zst
hardflip-e88398672f73e25a0c9cd66ea3637d73e01727f3.zip
help
Diffstat (limited to 'src/e_keys.go')
-rw-r--r--src/e_keys.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index 16d6bf6..079dc88 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -840,6 +840,15 @@ func e_help_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
ui.mode = NORMAL_MODE
ui.help_scroll = 0
return true
+ } else if event.Rune() == 'j' ||
+ event.Key() == tcell.KeyDown {
+ } else if event.Rune() == 'k' ||
+ event.Key() == tcell.KeyUp {
+ if ui.help_scroll >= 0 {
+ ui.help_scroll = 0
+ return true
+ }
+ ui.help_scroll -= 1
}
return false
}