From 6cb81b461baa693aedb3d1c2768316674c2bbed8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 28 Jun 2021 02:40:43 +0800 Subject: [PATCH] =?UTF-8?q?listBox:remove=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=85=83=E7=B4=A0=E6=97=B6=E4=BC=9A=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=B0=86=E5=85=89=E6=A0=87=E4=B8=8A=E7=A7=BB?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=85=89=E6=A0=87=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index 5c6e49c5..3113eee0 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -1094,6 +1094,9 @@ end function listBox:remove() if self.selected then rem(self.list,self.selected) + if not self.list[self.selected]then + self:arrowKey('up') + end self:drag(0,0,0,0) end end