Skip to content

Commit

Permalink
Use ESC for exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
iwat committed May 8, 2017
1 parent c307af5 commit 6071cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (c *_Console) draw() {
{"[TAB/↑/↓]", "select"},
{"[Enter]", "execute"},
{"[Ctrl-A]", "execute all"},
{"[Ctrl-C]", "stop"},
{"[ESC]", "exit"},
}

x := 0
Expand Down Expand Up @@ -119,7 +119,7 @@ func (c *_Console) loop() ([]string, error) {
}

switch event.Key {
case termbox.KeyCtrlC:
case termbox.KeyCtrlC, termbox.KeyEsc:
return nil, nil
case termbox.KeyCtrlA:
return c.results, nil
Expand Down

0 comments on commit 6071cf0

Please sign in to comment.