From e3bd7bee540bf2dbbffd351726cef01db21868f1 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Sun, 28 Apr 2024 22:24:39 +0200 Subject: [PATCH] feat: fix ctrl-c exit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e0365e7..4ef369c 100644 --- a/main.go +++ b/main.go @@ -45,7 +45,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: switch msg.Type { - case tea.KeyEnter, tea.KeyCtrlC, tea.KeyEsc: + case tea.KeyEsc: return m, tea.Quit } case tickMsg: