diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-20 13:17:27 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-20 13:17:27 +0300 |
| commit | 26ab5c59e31f18b3b8bd7b34fed751a3de179056 (patch) | |
| tree | 776befbee3a285c5f5b5385c2364fa6f8514a959 /tui.go | |
| parent | 35cc8c068f0883e685cef3824b0a238145c680a1 (diff) | |
Enha: scroll helppage with jk
Diffstat (limited to 'tui.go')
| -rw-r--r-- | tui.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 }) // |
