kopia lustrzana https://github.com/c9/core
Merge pull request +15321 from c9/pull/core/402
makes dialog's esc handler handle esc onlypull/404/head
commit
84a8d96b48
|
@ -133,9 +133,9 @@ define(function(require, module, exports) {
|
||||||
emit("resize");
|
emit("resize");
|
||||||
});
|
});
|
||||||
var escHandler = function(e) {
|
var escHandler = function(e) {
|
||||||
if (dialog.visible) {
|
if (dialog.visible && e.keyCode == 27) {
|
||||||
dialog.dispatchEvent("keydown", e);
|
dialog.dispatchEvent("keydown", e);
|
||||||
if (e.keyCode == 27) e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var addEscHandler = function() {
|
var addEscHandler = function() {
|
||||||
|
|
Ładowanie…
Reference in New Issue