From 3579ac9c1b0b7c2ec1a00385dd5073d9135d155d Mon Sep 17 00:00:00 2001 From: littlefean <2028140990@qq.com> Date: Sun, 15 Dec 2024 10:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=9B=9E=E8=BD=A6=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=90=8E=E5=85=A8=E9=83=A8=E7=9A=84section?= =?UTF-8?q?=E9=83=BD=E6=94=B9=E5=90=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/controller/concrete/ControllerSectionEdit.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/controller/concrete/ControllerSectionEdit.tsx b/src/core/controller/concrete/ControllerSectionEdit.tsx index d3613b3e..fcf617c9 100644 --- a/src/core/controller/concrete/ControllerSectionEdit.tsx +++ b/src/core/controller/concrete/ControllerSectionEdit.tsx @@ -55,7 +55,9 @@ ControllerSectionEdit.keydown = (event: KeyboardEvent) => { const user_input = prompt("请输入线上的文字", ""); if (user_input) { for (const section of StageManager.getSections()) { - section.rename(user_input); + if (section.isSelected) { + section.rename(user_input); + } } } }