Skip to content

Commit

Permalink
Pressing Escape close the Help Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebueno committed Oct 17, 2024
1 parent 51f45c8 commit 5b63d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/HelpModal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b63d08

Please sign in to comment.