Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #281 from jordanthomas/patch-1
Browse files Browse the repository at this point in the history
Fire dialog:cancel event on escape key press
  • Loading branch information
tiff committed Dec 28, 2012
2 parents 832c179 + 67223ac commit 56960b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/toolbar/dialog.js
Expand Up @@ -73,6 +73,7 @@
callbackWrapper(event);
}
if (keyCode === wysihtml5.ESCAPE_KEY) {
that.fire("cancel");
that.hide();
}
});
Expand Down

0 comments on commit 56960b3

Please sign in to comment.