Fix kb shortcuts no longer working in the editor after editing level properties

This commit is contained in:
Eevee (Evelyn Woods) 2021-03-13 20:16:37 -07:00
parent ba7e715222
commit 4399c9c75a

View File

@ -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();
}
}
}