Make sure the virtual keyboard isn't visible in the next scene

This commit is contained in:
Volker Mische 2021-02-28 16:41:57 +01:00
parent 86e90c2dc2
commit 52acc143f6

View File

@ -72,6 +72,11 @@ export class LoginScene extends ResizableScene {
}
this.login(this.name);
});
this.events.on('destroy', () => {
// Make sure the virtual keyboard isn't visible in the next scene
nameInputElement.blur()
})
}
update(time: number, delta: number): void {