From 52acc143f61ab8e24089c48a3f67ad51258b916d Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Sun, 28 Feb 2021 16:41:57 +0100 Subject: [PATCH] Make sure the virtual keyboard isn't visible in the next scene --- front/src/Phaser/Login/LoginScene.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/front/src/Phaser/Login/LoginScene.ts b/front/src/Phaser/Login/LoginScene.ts index 4055fdd3..a57eac5f 100644 --- a/front/src/Phaser/Login/LoginScene.ts +++ b/front/src/Phaser/Login/LoginScene.ts @@ -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 {