Commit 085a09b
Eric Bower
·
2026-03-03 22:05:51 -0500 EST
parent edab4d6
fix(tui): revert 'q' to go back This is conflicting with our text input boxes so I'm reverting for now
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) || msg.Matches('q') { | |
| 83 | + | if msg.Matches(vaxis.KeyEsc) { | |
| 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/q", Text: "prev page"}, | |
| 170 | + | {Shortcut: "esc", Text: "prev page"}, | |
| 171 | 171 | } | |
| 172 | 172 | if ok { | |
| 173 | 173 | segs = append(segs, wdgt.Footer()...) |