diff --git a/front/src/Phaser/Components/TextInput.ts b/front/src/Phaser/Components/TextInput.ts index a8ea772f..b92e14c4 100644 --- a/front/src/Phaser/Components/TextInput.ts +++ b/front/src/Phaser/Components/TextInput.ts @@ -1,3 +1,4 @@ +import {HtmlUtils} from "../../WebRtc/HtmlUtils"; const IGNORED_KEYS = new Set([ 'Esc', diff --git a/front/src/Phaser/Login/LoginScene.ts b/front/src/Phaser/Login/LoginScene.ts index 4ff582b4..47333150 100644 --- a/front/src/Phaser/Login/LoginScene.ts +++ b/front/src/Phaser/Login/LoginScene.ts @@ -1,3 +1,4 @@ +import {HtmlUtils} from "../../WebRtc/HtmlUtils"; import {gameManager} from "../Game/GameManager"; import {TextField} from "../Components/TextField"; import {TextInput} from "../Components/TextInput"; @@ -77,6 +78,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 { diff --git a/front/webpack.config.js b/front/webpack.config.js index f1a3df44..6890f4fd 100644 --- a/front/webpack.config.js +++ b/front/webpack.config.js @@ -12,7 +12,7 @@ module.exports = { devServer: { contentBase: './dist', host: '0.0.0.0', - sockPort: 80, + sockPort: 443, disableHostCheck: true, historyApiFallback: { rewrites: [