Fix kb shortcuts no longer working in the editor after editing level properties
This commit is contained in:
1 parent
ba7e715222
commit
4399c9c75a
1 file changed
+5
@@ -141,6 +141,11 @@ export class Overlay {
|
|||||||
close() {
|
close() {
|
||||||
this._remove_global_event_handlers();
|
this._remove_global_event_handlers();
|
||||||
this.root.closest('.overlay').remove();
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user