Skip to content

Commit

Permalink
fixed focus after help is closed
Browse files Browse the repository at this point in the history
resolves #1
  • Loading branch information
Daniel Milde committed Dec 28, 2020
1 parent 86a9cce commit ffc4850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ func (ui *UI) confirmDeletion() {
ui.deleteSelected()
})
ui.pages.AddPage("confirm", modal, true, true)
ui.pages.ShowPage("confirm")
}

func (ui *UI) deleteSelected() {
Expand All @@ -193,6 +192,7 @@ func (ui *UI) deleteSelected() {
func (ui *UI) keyPressed(key *tcell.EventKey) *tcell.EventKey {
if (key.Key() == tcell.KeyEsc || key.Rune() == 'q') && ui.pages.HasPage("help") {
ui.pages.RemovePage("help")
ui.app.SetFocus(ui.table)
return key
}
if key.Rune() == 'q' {
Expand Down

0 comments on commit ffc4850

Please sign in to comment.