From e88398672f73e25a0c9cd66ea3637d73e01727f3 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 10 May 2024 20:20:20 +0200 Subject: help --- src/e_keys.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/e_keys.go') 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 } -- cgit v1.2.3