From 6bc67c65d1440fede75279017889cb0b29bf6b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Sat, 22 Sep 2018 16:18:57 +0900 Subject: [PATCH] Fix: run login on pressing enter key --- src/game/login/login.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/login/login.js b/src/game/login/login.js index 7172159..de479cf 100644 --- a/src/game/login/login.js +++ b/src/game/login/login.js @@ -65,11 +65,11 @@ var Login = { if(isDebugMode()) { inputText.canvasInput.value(text); } - inputText.canvasInput._onkeyup = function() { + inputText.canvasInput._onkeyup = (function() { if(event.keyCode == Phaser.Keyboard.ENTER) { - (function() { this.startMenu(); }).bind(this) + this.startMenu(); } - } + }).bind(this); return inputText; },