Enha: scroll helppage with jk

This commit is contained in:
Grail Finder
2026-02-20 13:17:27 +03:00
parent 35cc8c068f
commit 26ab5c59e3
2 changed files with 14 additions and 1 deletions

13
tui.go
View File

@@ -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
})
//