From 1533e0fe746407e45ab4573b77460da6d5b0f388 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 26 Sep 2021 19:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=A4=E4=B8=AA=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=8C=89=E6=8B=AC=E5=8F=B7=E7=88=86=E7=82=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_arithmetic.lua | 2 +- parts/scenes/app_reflect.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/scenes/app_arithmetic.lua b/parts/scenes/app_arithmetic.lua index a2d7b3ab..1c6c1897 100644 --- a/parts/scenes/app_arithmetic.lua +++ b/parts/scenes/app_arithmetic.lua @@ -152,7 +152,7 @@ end function scene.keyDown(key,isRep) if isRep then return end if key:sub(1,2)=="kp"then key=key:sub(3)end - if #key==1 and("0123456789"):find(key)then + if #key==1 and("0123456789"):find(key,nil,true)then if #input<8 then input=input..key inputTime=1 diff --git a/parts/scenes/app_reflect.lua b/parts/scenes/app_reflect.lua index bd0a8c76..74d23924 100644 --- a/parts/scenes/app_reflect.lua +++ b/parts/scenes/app_reflect.lua @@ -29,7 +29,7 @@ function scene.keyDown(key,isRep) ct=60 end elseif state==2 and #key==1 then - key=("qapl"):find(key) + key=("qapl"):find(key,nil,true) if key then --BEAUTIFUL LOGIC BELOW: