summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-04 12:30:00 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-04 12:30:00 +0300
commit8f4d8e472221fc7e0a963c133d9eda1c1d310516 (patch)
treeff167b229119e67eec589fa4a096fff0c6817404
parent9c6164c2272bcec9e6fb7258a166061a6252dbbd (diff)
Chore: 'x' to close help window
-rw-r--r--tui.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/tui.go b/tui.go
index d9f61ee..cf8e0b6 100644
--- a/tui.go
+++ b/tui.go
@@ -93,10 +93,13 @@ var (
[yellow]n[white]: go to next search result
[yellow]N[white]: go to previous search result
+=== tables (chat history, agent pick, file pick, properties) ===
+[yellow]x[white]: to exit the table page
+
=== status line ===
%s
-Press Enter to go back
+Press <Enter> or 'x' to return
`
colorschemes = map[string]tview.Theme{
"default": tview.Theme{
@@ -644,8 +647,13 @@ func init() {
})
helpView.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
switch event.Key() {
- case tcell.KeyEsc, tcell.KeyEnter:
+ case tcell.KeyEnter:
return event
+ default:
+ if event.Key() == tcell.KeyRune && event.Rune() == 'x' {
+ pages.RemovePage(helpPage)
+ return nil
+ }
}
return nil
})