forked from Mirrors/bubbletea
Catch Ctrl+C
This commit is contained in:
parent
d9cf7d1477
commit
97bbcdd5fb
|
@ -40,6 +40,8 @@ func update(msg tea.Msg, model tea.Model) (tea.Model, tea.Cmd) {
|
|||
case "q":
|
||||
fallthrough
|
||||
case "esc":
|
||||
fallthrough
|
||||
case "ctrl+c":
|
||||
return m, tea.Quit
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue