Skip to content

Commit

Permalink
Go back to focus on input when closing channel selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Andre Birkedal committed Jan 13, 2020
1 parent 9eeb9fb commit 5a84d40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/select_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ func (v *View) showChannelSelector() {

func (v *View) hideChannelSelector() {
v.basePages.RemovePage("select_channel")

page, primitive := v.pages.GetFrontPage()

if primitive != nil {
_, channel := v.getChannelByName(page)

if channel != nil {
v.app.SetFocus(channel.input)
}
}
}

func (v *View) gotoPage(c *channel) {
Expand Down

0 comments on commit 5a84d40

Please sign in to comment.