Commit 391c4f9

Eric Bower  ·  2026-02-25 22:41:01 -0500 EST
parent b10aef1
feat(tui): 'q' goes to prev page
1 files changed,  +2, -2
+2, -2
......@@ -80,7 +80,7 @@ func (app *App) CaptureEvent(ev vaxis.Event) (vxfw.Command, error) {
8080 if msg.Matches('c', vaxis.ModCtrl) {
8181 return vxfw.QuitCmd{}, nil
8282 }
83- if msg.Matches(vaxis.KeyEsc) {
83+ if msg.Matches(vaxis.KeyEsc) || msg.Matches('q') {
8484 if app.page == "signup" || app.page == HOME {
8585 return nil, nil
8686 }
......@@ -167,7 +167,7 @@ func (app *App) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error) {
167167 wdgt, ok := cur.(WidgetFooter)
168168 segs := []Shortcut{
169169 {Shortcut: "^c", Text: "quit"},
170- {Shortcut: "esc", Text: "prev page"},
170+ {Shortcut: "esc/q", Text: "prev page"},
171171 }
172172 if ok {
173173 segs = append(segs, wdgt.Footer()...)