diff --git a/examples/deeper/demo.tape b/examples/deeper/demo.tape index 3bb3384..6a87585 100644 --- a/examples/deeper/demo.tape +++ b/examples/deeper/demo.tape @@ -38,4 +38,3 @@ Enter Sleep 2s Enter Sleep 4s - diff --git a/menu/keys.go b/menu/keys.go index ed0d5de..37a5077 100644 --- a/menu/keys.go +++ b/menu/keys.go @@ -50,7 +50,7 @@ func (k KeyMap) FullHelp() [][]key.Binding { func (m Model) handleKeyMsg(keyMsg tea.KeyMsg, msg tea.Msg) (tea.Model, tea.Cmd) { - if m.help.ShowAll { + if m.help.ShowAll && !key.Matches(keyMsg, DefaultKeyMap.Help) { m.help.ShowAll = false // toggle help view switch { //override escape to only close help case keyMsg.String() == tea.KeyEscape.String():