From 7456678eb729f7fa530bf0ba0a97b85bbdc5cbcd Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 18 Aug 2021 20:34:08 -0400 Subject: [PATCH] h/l and left/right can also change focus --- tui/bubble.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tui/bubble.go b/tui/bubble.go index 375828f37..eca06e297 100644 --- a/tui/bubble.go +++ b/tui/bubble.go @@ -93,6 +93,14 @@ func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return b, tea.Quit case "tab": b.activeBox = (b.activeBox + 1) % 2 + case "h", "left": + if b.activeBox > 0 { + b.activeBox-- + } + case "l", "right": + if b.activeBox < len(b.boxes)-1 { + b.activeBox++ + } } case errMsg: b.error = msg.Error()