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

View File

@@ -403,7 +403,7 @@ func updateFlexLayout() {
flex.AddItem(textView, 0, 40, false) flex.AddItem(textView, 0, 40, false)
flex.AddItem(textArea, 0, 10, false) flex.AddItem(textArea, 0, 10, false)
if positionVisible { if positionVisible {
flex.AddItem(statusLineWidget, 0, 2, false) flex.AddItem(statusLineWidget, 0, 4, false)
} }
// Keep focus on currently focused widget // Keep focus on currently focused widget
focused := app.GetFocus() focused := app.GetFocus()

13
tui.go
View File

@@ -483,6 +483,19 @@ func init() {
pages.RemovePage(helpPage) pages.RemovePage(helpPage)
return nil 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 return nil
}) })
// //