vaxis

created pr with 50.1 on 2025-03-12T16:16:57Z · by c8ef7d19
cmds
checkout latest patchset:
ssh pr.pico.sh print 50 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 50.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 50

Patchset 50.1 on 2025-03-12T16:16:57Z · commit e659cd6

feat(vxfw.list): add arrow key events
Eric Bower 2025-03-12T16:16:12Z
Semantic diff summary
0 added, 1 modified, 0 signature changed, 0 removed across 1 analyzed file
+2 -2 vxfw/list/list.go #
......@@ -60,14 +60,14 @@ func (d *Dynamic) CaptureEvent(ev vaxis.Event) (vxfw.Command, error) {
6060 // We capture key events
6161 switch ev := ev.(type) {
6262 case vaxis.Key:
63- if ev.Matches('j') {
63+ if ev.Matches('j') || ev.Matches(vaxis.KeyDown) {
6464 cmd := d.NextItem()
6565 if cmd == nil {
6666 return nil, nil
6767 }
6868 return vxfw.ConsumeAndRedraw(), nil
6969 }
70- if ev.Matches('k') {
70+ if ev.Matches('k') || ev.Matches(vaxis.KeyUp) {
7171 cmd := d.PrevItem()
7272 if cmd == nil {
7373 return nil, nil
Back to top