From 54daef0cd943d4afb57e011ea74c848e93d5d8dc Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 17 May 2021 19:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A7=E4=BB=B6=E7=B3=BB?= =?UTF-8?q?=E7=BB=9FinputBox=E7=84=A6=E7=82=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index cec9a277..945ef8fb 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -1092,7 +1092,7 @@ end function WIDGET.cursorMove(x,y) for _,W in next,WIDGET.active do if not W.hide and W.resCtr and W:isAbove(x,y)then - WIDGET.sel=W + WIDGET.focus(W) return end end @@ -1135,7 +1135,7 @@ function WIDGET.keyPressed(k) if not W then for _,w in next,WIDGET.active do if not w.hide and w.isAbove then - WIDGET.sel=w + WIDGET.focus(w) return end end @@ -1166,7 +1166,7 @@ function WIDGET.keyPressed(k) end end if tar then - WIDGET.sel=tar + WIDGET.focus(tar) end else if W and W.type=='inputBox'then