🐛 Catch Ctrl-C - fixes #51

This commit is contained in:
makeworld 2020-07-26 11:21:33 -04:00
parent 28b2235ddb
commit 481e2797f7
1 changed files with 3 additions and 0 deletions

View File

@ -341,6 +341,9 @@ func Init() {
case tcell.KeyCtrlQ:
Stop()
return nil
case tcell.KeyCtrlC:
Stop()
return nil
case tcell.KeyRune:
// Regular key was sent
switch string(event.Rune()) {