added esc-key to quit table

This commit is contained in:
mikael 2023-03-04 00:28:46 +01:00
parent 99e6625a39
commit af2ace252f
No known key found for this signature in database
GPG key ID: 5B84855A310FE33F

View file

@ -39,7 +39,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.selected = m.table.SelectedRow()
m.quitting = true
return m, tea.Quit
case "ctrl+c", "q":
case "ctrl+c", "q", "esc":
m.quitting = true
return m, tea.Quit
}