bug: correct keyboard reset.

This commit is contained in:
Miroslav Šedivý 2021-04-12 13:32:52 +00:00
parent 7eaffd74a8
commit fee4f82ab5

View File

@ -218,9 +218,6 @@
} }
onMouseLeave(e: MouseEvent) { onMouseLeave(e: MouseEvent) {
this._overlay.blur()
this.focused = false
if (this.isControling) { if (this.isControling) {
this.keyboard.reset() this.keyboard.reset()
@ -230,6 +227,9 @@
numlock: e.getModifierState('NumLock'), numlock: e.getModifierState('NumLock'),
}) })
} }
this._overlay.blur()
this.focused = false
} }
onDragEnter(e: DragEvent) { onDragEnter(e: DragEvent) {