Pressing 'q' quits the program

master
Michael Dvorkin 11 years ago
parent 6e7ba199d2
commit ae1b141ccb
  1. 2
      cmd/mop.go

@ -54,7 +54,7 @@ loop:
switch event.Type { switch event.Type {
case termbox.EventKey: case termbox.EventKey:
if lineEditor == nil && columnEditor == nil && !showingHelp { if lineEditor == nil && columnEditor == nil && !showingHelp {
if event.Key == termbox.KeyEsc { if event.Key == termbox.KeyEsc || event.Ch == 'q' {
break loop break loop
} else if event.Ch == '+' || event.Ch == '-' { } else if event.Ch == '+' || event.Ch == '-' {
lineEditor = new(mop.LineEditor).Initialize(screen, quotes) lineEditor = new(mop.LineEditor).Initialize(screen, quotes)

Loading…
Cancel
Save