From 9a7ac8132523290cd689dfebfcd0b58b68b6c883 Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Wed, 11 Oct 2023 09:41:04 +0800 Subject: [PATCH] =?UTF-8?q?game.prompt=E8=BE=93=E5=85=A5=E6=A1=86=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E5=86=92=E6=B3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 5549060b9..e8f4dc478 100644 --- a/game/game.js +++ b/game/game.js @@ -37476,14 +37476,16 @@ else if(e.keyCode==27){ clickCancel(); } + e.stopPropagation(); } - input.onkeyup=function(){ + input.onkeyup=function(e){ if(input.value){ confirmNode.classList.remove('disabled'); } else{ confirmNode.classList.remove('disabled'); } + e.stopPropagation(); } input.focus(); }