game.prompt输入框停止冒泡

This commit is contained in:
shijian 2023-10-11 09:41:04 +08:00
parent 5a5f196471
commit 9a7ac81325
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}