diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-01-28 02:08:24 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-29 22:46:08 +0100 |
commit | ea2000633ab6254cf8015d441bd3e79a3009ced2 (patch) | |
tree | 703d989b16344d0dd41fe6a20fa0bfd83b30d9e2 | |
parent | 0c2af2e354541632c708a1a7d6eb04c1e2a951ae (diff) | |
download | aerc-ea2000633ab6254cf8015d441bd3e79a3009ced2.tar.gz |
listbox: use tab key to cycle through list
Use tab key to cycle forward and backtab to cycle backward through the
selection in the listbox widget.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | app/listbox.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/listbox.go b/app/listbox.go index 5a80261e..02118d2a 100644 --- a/app/listbox.go +++ b/app/listbox.go @@ -252,11 +252,11 @@ func (lb *ListBox) Event(event tcell.Event) bool { lb.horizPos = len(lb.selected) lb.Invalidate() return true - case tcell.KeyCtrlP, tcell.KeyUp: + case tcell.KeyCtrlP, tcell.KeyUp, tcell.KeyBacktab: lb.moveCursor(-1) lb.Invalidate() return true - case tcell.KeyCtrlN, tcell.KeyDown: + case tcell.KeyCtrlN, tcell.KeyDown, tcell.KeyTab: lb.moveCursor(+1) lb.Invalidate() return true |