From 9086d9afc1ff216b6bbfd270f9e1c32633be81a4 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Fri, 4 Jul 2025 09:30:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B0=8F=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E7=89=88=E9=81=93=E5=85=B7=E6=A0=8F=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E6=9C=89=E5=BE=85=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index 252402a8..033c9984 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2868,6 +2868,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = toolInv.index = newConfig.index; toolInv.subType = this.subType; toolInv.updateItemList(); + toolInv.focus(toolInv.index); redraw(true); } }; @@ -3700,12 +3701,12 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = hideBtn.event = () => { hideItem(globalUI.itemId); this.itemInv.updateItemList(); - redraw(); + this.itemInv.focus(this.itemInv.index); } markBtn.event = () => { markItem(globalUI.itemId); this.itemInv.updateItemList(); - redraw(); + this.itemInv.focus(this.itemInv.index); } const showHideBtn = new ShowHideBtn(20, 350, 95, 18); const setHotkeyBtn = new IconBtn(145, 60, 24, 24, 'keyboard');