Skip to content

Commit

Permalink
fix(list): DisableQuitKeybinding is ignored after updating the list
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jan 26, 2022
1 parent db97ac5 commit c04b22e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions list/list.go
Expand Up @@ -602,7 +602,6 @@ func (m *Model) updateKeybindings() {
m.KeyMap.ClearFilter.SetEnabled(false)
m.KeyMap.CancelWhileFiltering.SetEnabled(true)
m.KeyMap.AcceptWhileFiltering.SetEnabled(m.FilterInput.Value() != "")
m.KeyMap.Quit.SetEnabled(true)
m.KeyMap.ShowFullHelp.SetEnabled(false)
m.KeyMap.CloseFullHelp.SetEnabled(false)

Expand All @@ -622,7 +621,6 @@ 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(true)

if m.Help.ShowAll {
m.KeyMap.ShowFullHelp.SetEnabled(true)
Expand Down

0 comments on commit c04b22e

Please sign in to comment.