From 26ab5c59e31f18b3b8bd7b34fed751a3de179056 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 20 Feb 2026 13:17:27 +0300 Subject: Enha: scroll helppage with jk --- tui.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tui.go') diff --git a/tui.go b/tui.go index 9b7a9f5..2c4fe67 100644 --- a/tui.go +++ b/tui.go @@ -483,6 +483,19 @@ func init() { pages.RemovePage(helpPage) return nil } + // Allow scrolling keys to pass through to the TextView + switch event.Key() { + case tcell.KeyUp, tcell.KeyDown, + tcell.KeyPgUp, tcell.KeyPgDn, + tcell.KeyHome, tcell.KeyEnd: + return event + } + if event.Key() == tcell.KeyRune { + switch event.Rune() { + case 'j', 'k', 'g', 'G': + return event + } + } return nil }) // -- cgit v1.2.3