summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-20 13:17:27 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-20 13:17:27 +0300
commit26ab5c59e31f18b3b8bd7b34fed751a3de179056 (patch)
tree776befbee3a285c5f5b5385c2364fa6f8514a959
parent35cc8c068f0883e685cef3824b0a238145c680a1 (diff)
Enha: scroll helppage with jk
-rw-r--r--helpfuncs.go2
-rw-r--r--tui.go13
2 files changed, 14 insertions, 1 deletions
diff --git a/helpfuncs.go b/helpfuncs.go
index 5356472..55df7c1 100644
--- a/helpfuncs.go
+++ b/helpfuncs.go
@@ -403,7 +403,7 @@ func updateFlexLayout() {
flex.AddItem(textView, 0, 40, false)
flex.AddItem(textArea, 0, 10, false)
if positionVisible {
- flex.AddItem(statusLineWidget, 0, 2, false)
+ flex.AddItem(statusLineWidget, 0, 4, false)
}
// Keep focus on currently focused widget
focused := app.GetFocus()
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
})
//