fix escape key not working in firefox

This commit is contained in:
Ezequiel Bergamaschi 2015-04-27 23:15:14 -03:00
parent 219d7e2efe
commit 3546b3ae82

View File

@ -251,7 +251,7 @@ mindplot.DesignerKeyboard = new Class({
event.stopPropagation();
}
);
var excludes = ['esc', 'f1', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12'];
var excludes = ['esc', 'escape', 'f1', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12'];
$(document).on('keypress', function (event) {
var keyCode;