74d88333abf4454b63c9133ea575df331d7262ee

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Exit on ctrl+c

Diff

 1diff --git a/internal/ui/app.go b/internal/ui/app.go
 2index c045746573c5bc83f4717ef318f3d91939be96be..602795f86918404fd6f1f88ca446bc4eaf197b67 100644
 3--- a/internal/ui/app.go
 4+++ b/internal/ui/app.go
 5@@ -104,7 +104,7 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 6 
 7 func (m *model) handleKey(k tea.KeyMsg) tea.Cmd {
 8 	switch k.Type {
 9-	case tea.KeyEsc:
10+	case tea.KeyEsc, tea.KeyCtrlC:
11 		return tea.Quit
12 	case tea.KeyF2:
13 		return m.talkToggle()