repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
391c4f9
parent
b10aef1
author
Eric Bower
date
2026-02-25 22:41:01 -0500 EST
feat(tui): 'q' goes to prev page
1 files changed,  +2, -2
M pkg/tui/ui.go
+2, -2
 1@@ -80,7 +80,7 @@ func (app *App) CaptureEvent(ev vaxis.Event) (vxfw.Command, error) {
 2 		if msg.Matches('c', vaxis.ModCtrl) {
 3 			return vxfw.QuitCmd{}, nil
 4 		}
 5-		if msg.Matches(vaxis.KeyEsc) {
 6+		if msg.Matches(vaxis.KeyEsc) || msg.Matches('q') {
 7 			if app.page == "signup" || app.page == HOME {
 8 				return nil, nil
 9 			}
10@@ -167,7 +167,7 @@ func (app *App) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error) {
11 	wdgt, ok := cur.(WidgetFooter)
12 	segs := []Shortcut{
13 		{Shortcut: "^c", Text: "quit"},
14-		{Shortcut: "esc", Text: "prev page"},
15+		{Shortcut: "esc/q", Text: "prev page"},
16 	}
17 	if ok {
18 		segs = append(segs, wdgt.Footer()...)