7456678eb729f7fa530bf0ba0a97b85bbdc5cbcd
- Author
- Christian Rocha <christian@rocha.is>
- Committer
- Christian Rocha <christian@rocha.is>
- Date
Message
h/l and left/right can also change focus
Diff
1diff --git a/tui/bubble.go b/tui/bubble.go
2index 375828f37da0a12b3c46432e404d024bf51c9657..eca06e297cc1fc372b478a7c709f5b0ea6eba4e2 100644
3--- a/tui/bubble.go
4+++ b/tui/bubble.go
5@@ -93,6 +93,14 @@ func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
6 return b, tea.Quit
7 case "tab":
8 b.activeBox = (b.activeBox + 1) % 2
9+ case "h", "left":
10+ if b.activeBox > 0 {
11+ b.activeBox--
12+ }
13+ case "l", "right":
14+ if b.activeBox < len(b.boxes)-1 {
15+ b.activeBox++
16+ }
17 }
18 case errMsg:
19 b.error = msg.Error()