feat: fix ctrl-c exit

This commit is contained in:
Louis Dalibard 2024-04-28 22:24:39 +02:00
parent e06764a689
commit e3bd7bee54

View File

@ -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: