Fix kb shortcuts no longer working in the editor after editing level properties
This commit is contained in:
parent
ba7e715222
commit
4399c9c75a
@ -141,6 +141,11 @@ export class Overlay {
|
||||
close() {
|
||||
this._remove_global_event_handlers();
|
||||
this.root.closest('.overlay').remove();
|
||||
if (document.activeElement) {
|
||||
// The active element is almost certainly either the dialog or a control within it,
|
||||
// which is useless as a focus target, so blur it and let the page have focus
|
||||
document.activeElement.blur();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user