Skip to content

Commit

Permalink
feat(keypress): esc to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDotJS committed Dec 6, 2019
1 parent 43a9d3e commit 8b2681b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ export class Controller {
}

private isQuitKey(ctrl, name): boolean {
return (ctrl && name === 'c') || name === 'q';
return (ctrl && name === 'c') || name === 'q' || name === 'escape';
}

private quit(): void {
Expand Down

0 comments on commit 8b2681b

Please sign in to comment.