Skip to content

Commit

Permalink
fix(list): disable quit keybinding while filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenries committed Feb 8, 2022
1 parent 06358c3 commit 5067257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list/list.go
Expand Up @@ -624,6 +624,7 @@ func (m *Model) updateKeybindings() {
m.KeyMap.ClearFilter.SetEnabled(m.filterState == FilterApplied)
m.KeyMap.CancelWhileFiltering.SetEnabled(false)
m.KeyMap.AcceptWhileFiltering.SetEnabled(false)
m.KeyMap.Quit.SetEnabled(quit)

if m.Help.ShowAll {
m.KeyMap.ShowFullHelp.SetEnabled(true)
Expand All @@ -634,7 +635,6 @@ func (m *Model) updateKeybindings() {
m.KeyMap.CloseFullHelp.SetEnabled(minHelp)
}
}
m.KeyMap.Quit.SetEnabled(quit)
}

// Update pagination according to the amount of items for the current state.
Expand Down

0 comments on commit 5067257

Please sign in to comment.