fix(users/Profpatsch/struct-edit): change arrow keys
Since items are aligned per-line, it makes more intuitive sense to use up/down for previous/next item, and left to go up and right to go down. Change-Id: I6bc33bd4e6e8f9fb245d252ca063dfabf972147d Reviewed-on: https://cl.tvl.fyi/c/depot/+/2864 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
f57f1e4489
commit
77840fba2c
1 changed files with 5 additions and 5 deletions
|
@ -333,16 +333,16 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
return m, tea.Quit
|
||||
|
||||
case "up":
|
||||
m, err = m.ascend()
|
||||
m, err = m.prev()
|
||||
|
||||
case "down":
|
||||
m, err = m.descend()
|
||||
|
||||
case "right":
|
||||
m, err = m.next()
|
||||
|
||||
case "right":
|
||||
m, err = m.descend()
|
||||
|
||||
case "left":
|
||||
m, err = m.prev()
|
||||
m, err = m.ascend()
|
||||
|
||||
// case "enter":
|
||||
// _, ok := m.selected[m.cursor]
|
||||
|
|
Loading…
Reference in a new issue