Permalink
Browse files

Merge pull request #281 from jordanthomas/patch-1

Fire dialog:cancel event on escape key press
  • Loading branch information...
2 parents 832c179 + 67223ac commit 56960b31adc37e07797382d8e8b10109f206b19c @tiff tiff committed Dec 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/toolbar/dialog.js
View
1 src/toolbar/dialog.js
@@ -73,6 +73,7 @@
callbackWrapper(event);
}
if (keyCode === wysihtml5.ESCAPE_KEY) {
+ that.fire("cancel");
that.hide();
}
});

0 comments on commit 56960b3

Please sign in to comment.