Fix keydown events after closing window
This commit is contained in:
parent
0a8f2fae79
commit
33c6978d27
|
@ -803,7 +803,7 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('modal:close', this);
|
Common.NotificationCenter.trigger('modal:close', this, hide_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$window.remove();
|
this.$window.remove();
|
||||||
|
@ -843,7 +843,7 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Common.NotificationCenter.trigger('modal:hide', this);
|
Common.NotificationCenter.trigger('modal:hide', this, hide_mask);
|
||||||
}
|
}
|
||||||
this.$window.hide();
|
this.$window.hide();
|
||||||
this.$window.removeClass('notransform');
|
this.$window.removeClass('notransform');
|
||||||
|
|
|
@ -99,11 +99,11 @@ Common.util = Common.util||{};
|
||||||
'modal:show': function(e){
|
'modal:show': function(e){
|
||||||
window.key.suspend();
|
window.key.suspend();
|
||||||
},
|
},
|
||||||
'modal:close': function(e) {
|
'modal:close': function(e, last) {
|
||||||
window.key.resume();
|
last && window.key.resume();
|
||||||
},
|
},
|
||||||
'modal:hide': function(e) {
|
'modal:hide': function(e, last) {
|
||||||
window.key.resume();
|
last && window.key.resume();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue