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) { | |
| 80 | 80 | if msg.Matches('c', vaxis.ModCtrl) { | |
| 81 | 81 | return vxfw.QuitCmd{}, nil | |
| 82 | 82 | } | |
| 83 | - | if msg.Matches(vaxis.KeyEsc) { | |
| 83 | + | if msg.Matches(vaxis.KeyEsc) || msg.Matches('q') { | |
| 84 | 84 | if app.page == "signup" || app.page == HOME { | |
| 85 | 85 | return nil, nil | |
| 86 | 86 | } |
| ... | ... | @@ -167,7 +167,7 @@ func (app *App) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error) { | |
| 167 | 167 | wdgt, ok := cur.(WidgetFooter) | |
| 168 | 168 | segs := []Shortcut{ | |
| 169 | 169 | {Shortcut: "^c", Text: "quit"}, | |
| 170 | - | {Shortcut: "esc", Text: "prev page"}, | |
| 170 | + | {Shortcut: "esc/q", Text: "prev page"}, | |
| 171 | 171 | } | |
| 172 | 172 | if ok { | |
| 173 | 173 | segs = append(segs, wdgt.Footer()...) |