diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-12-04 12:30:00 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2025-12-04 12:30:00 +0300 |
| commit | 8f4d8e472221fc7e0a963c133d9eda1c1d310516 (patch) | |
| tree | ff167b229119e67eec589fa4a096fff0c6817404 | |
| parent | 9c6164c2272bcec9e6fb7258a166061a6252dbbd (diff) | |
Chore: 'x' to close help window
| -rw-r--r-- | tui.go | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 }) |
