Skip to content

Commit

Permalink
🐛 回车重命名后全部的section都改名了
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean committed Dec 15, 2024
1 parent b768e90 commit 3579ac9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/controller/concrete/ControllerSectionEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit 3579ac9

Please sign in to comment.