diff --git a/components/HelpModal.go b/components/HelpModal.go index 27c965b..85331ca 100644 --- a/components/HelpModal.go +++ b/components/HelpModal.go @@ -74,7 +74,7 @@ func NewHelpModal() *HelpModal { table.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { command := app.Keymaps.Group(app.HomeGroup).Resolve(event) - if command == commands.Quit || command == commands.HelpPopup { + if command == commands.Quit || command == commands.HelpPopup || event.Key() == tcell.KeyEsc { MainPages.RemovePage(pageNameHelp) } return event