Skip to content

Commit

Permalink
tab to toggle focus between header and list
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Feb 1, 2024
1 parent b962553 commit 312addc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pane.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ func (p *PaneList) Update(msg bbt.Msg) (Pane, bbt.Cmd) {
if p.model.Index() == 0 {
return p, Focus("header")
}
case "tab":
return p, Focus("header")
}
}

Expand Down Expand Up @@ -358,6 +360,8 @@ func (p *PaneHeader) Update(msg bbt.Msg) (Pane, bbt.Cmd) {
p.current = mod(p.current+1, len(p.states))
case "j", "down":
return p, Focus("list")
case "tab":
return p, Focus("list")
}
}

Expand Down

0 comments on commit 312addc

Please sign in to comment.