diff --git a/write/write.go b/write/write.go index 1674437..2e15415 100644 --- a/write/write.go +++ b/write/write.go @@ -41,11 +41,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: switch msg.String() { - case "ctrl+c": + case "ctrl+c", "esc": m.aborted = true m.quitting = true return m, tea.Quit - case "esc", "ctrl+d": + case "ctrl+d": m.quitting = true return m, tea.Quit }