Skip to content

Commit

Permalink
Close the window when the Esc key has been clicked (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewizardplusplus authored and p-sam committed Aug 30, 2018
1 parent 5739c35 commit e02b598
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/page/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ docReady(() => {
if (e.which === 13) {
promptSubmit();
}
if (e.which === 27) {
promptCancel();
}
});
} else if (promptOptions.type === 'select') {
dataEl = document.createElement('select');
Expand Down

0 comments on commit e02b598

Please sign in to comment.