feat: move a card between statuses #3
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue