diff --git a/choose/choose.go b/choose/choose.go index ec5e025..ac0c935 100644 --- a/choose/choose.go +++ b/choose/choose.go @@ -87,7 +87,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.items[i].selected = false } m.numSelected = 0 - case "ctrl+c": + case "ctrl+c", "esc": m.aborted = true m.quitting = true return m, tea.Quit diff --git a/confirm/confirm.go b/confirm/confirm.go index bb0ef21..abb3f75 100644 --- a/confirm/confirm.go +++ b/confirm/confirm.go @@ -48,7 +48,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.quitting = true m.confirmation = true return m, tea.Quit - case "ctrl+c", "q", "n", "N": + case "ctrl+c", "esc", "q", "n", "N": m.confirmation = false m.quitting = true return m, tea.Quit