Skip to content

Commit

Permalink
Merge pull request #1 from flippedcracker/main
Browse files Browse the repository at this point in the history
Update group.go
  • Loading branch information
remogatto authored Oct 6, 2024
2 parents 766dd70 + 79563a0 commit 7ccc61e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/group/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ func WithLayout(layout *layout.Layout) Option {
func (g *Model) nextFocus() tea.Cmd {
g.Current().Blur()

g.currFocus = (g.currFocus + 1) % len(g.items)
g.currFocus--
if g.currFocus < 0 {
g.currFocus = len(g.items) - 1
}

return g.Current().Focus()
}
Expand Down

0 comments on commit 7ccc61e

Please # to comment.