🐛 Catch Ctrl-C - fixes #51
This commit is contained in:
parent
28b2235ddb
commit
481e2797f7
|
@ -341,6 +341,9 @@ func Init() {
|
||||||
case tcell.KeyCtrlQ:
|
case tcell.KeyCtrlQ:
|
||||||
Stop()
|
Stop()
|
||||||
return nil
|
return nil
|
||||||
|
case tcell.KeyCtrlC:
|
||||||
|
Stop()
|
||||||
|
return nil
|
||||||
case tcell.KeyRune:
|
case tcell.KeyRune:
|
||||||
// Regular key was sent
|
// Regular key was sent
|
||||||
switch string(event.Rune()) {
|
switch string(event.Rune()) {
|
||||||
|
|
Loading…
Reference in New Issue