Skip to content

Commit 0264a6a

Browse files
committed
fix: 关闭记错快捷键的右下角文字提示
1 parent bb0ad18 commit 0264a6a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/src/core/service/controlService/keyboardOnlyEngine/keyboardOnlyEngine.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { EntityShakeEffect } from "@/core/service/feedbackService/effectEngine/c
44
import { Settings } from "@/core/service/Settings";
55
import { TextNode } from "@/core/stage/stageObject/entity/TextNode";
66
import { getEnterKey } from "@/utils/keyboardFunctions";
7-
import { toast } from "sonner";
87

98
/**
109
* 纯键盘控制的相关引擎
@@ -86,6 +85,6 @@ export class KeyboardOnlyEngine {
8685
for (const textNode of textNodes) {
8786
this.project.effects.addEffect(EntityShakeEffect.fromEntity(textNode));
8887
}
89-
toast("您可能记错了节点进入编辑状态的控制键设置");
88+
// 这里就不显示提示文字了。因为用户“快深频”说总是误弹出。
9089
}
9190
}

app/src/core/stage/stageManager/concreteMethods/StageNodeAdder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class NodeAdder {
164164
);
165165
}
166166
this.project.historyManager.recordStep();
167-
return newUUID;
167+
return connectPoint.uuid;
168168
}
169169
/**
170170
* 通过纯文本生成网状结构

0 commit comments

Comments
 (0)