From 9c2b09e5898e51ba10740fcfc8a32e5a9512422c Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Tue, 19 Apr 2022 20:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=AE=E7=9B=98=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9C=BA=E5=9C=B0=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=88=87=E6=8D=A2=E7=94=BB=E7=AC=94=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=96=B0=E5=A2=9Ec=E4=B8=BA=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E7=94=BB=E7=AC=94=E5=BF=AB=E6=8D=B7=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/custom_field.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parts/scenes/custom_field.lua b/parts/scenes/custom_field.lua index 35d47e86e..5441978ff 100644 --- a/parts/scenes/custom_field.lua +++ b/parts/scenes/custom_field.lua @@ -25,7 +25,7 @@ local penKey={ ['1']=1,['2']=2,['3']=3,['4']=4,['5']=5,['6']=6,['7']=7,['8']=8, q=9,w=10,e=11,r=12,t=13,y=14,u=15,i=16, a=17,s=18,d=19,f=20,g=21,h=22,j=23,k=24, - z=0,x=-1, + z=0,x=-1,c=-2, } local minoPosCode={ [102]=1,[1121]=1,--Z @@ -250,8 +250,8 @@ function scene.keyDown(key) else SCN.back() end - else - pens[curPen]=penKey[key]or pens[curPen] + elseif penKey[key] then + pens[1]=penKey[key] end end function scene.keyUp(key)