mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 21:54:49 +08:00
Fix keydown events after closing window
This commit is contained in:
@ -814,7 +814,7 @@ define([
|
||||
}
|
||||
}
|
||||
|
||||
Common.NotificationCenter.trigger('modal:close', this);
|
||||
Common.NotificationCenter.trigger('modal:close', this, hide_mask);
|
||||
}
|
||||
|
||||
this.$window.remove();
|
||||
@ -854,7 +854,7 @@ define([
|
||||
}
|
||||
}
|
||||
}
|
||||
Common.NotificationCenter.trigger('modal:hide', this);
|
||||
Common.NotificationCenter.trigger('modal:hide', this, hide_mask);
|
||||
}
|
||||
this.$window.hide();
|
||||
this.$window.removeClass('notransform');
|
||||
|
||||
@ -99,11 +99,11 @@ Common.util = Common.util||{};
|
||||
'modal:show': function(e){
|
||||
window.key.suspend();
|
||||
},
|
||||
'modal:close': function(e) {
|
||||
window.key.resume();
|
||||
'modal:close': function(e, last) {
|
||||
last && window.key.resume();
|
||||
},
|
||||
'modal:hide': function(e) {
|
||||
window.key.resume();
|
||||
'modal:hide': function(e, last) {
|
||||
last && window.key.resume();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user