use j and k to navigate through the cards

This commit is contained in:
Dan Anglin 2023-04-25 02:42:41 +01:00
parent 7e5e3dc76c
commit 3536c930f4
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -37,6 +37,18 @@ func (u *UI) newColumn(statusID int, statusName string) column {
u.shiftColumnFocus(shiftLeft)
case 'l':
u.shiftColumnFocus(shiftRight)
case 'j':
cur := cards.GetCurrentItem()
if cur == cards.GetItemCount()-1 {
cur = 0
} else {
cur++
}
cards.SetCurrentItem(cur)
case 'k':
cur := cards.GetCurrentItem()
cur--
cards.SetCurrentItem(cur)
}
return event