Skip to content

Commit 240e5db

Browse files
committed
feat: ctrl+a 全选时,自动显示当前有多少个实体和关系
1 parent 1a5fb4f commit 240e5db

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/src/core/service/controlService/shortcutKeysEngine/shortcutKeysRegister.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,17 @@ export class KeyBindsRegistrar {
331331
await this.project.keyBinds.create("selectAll", "C-a", () => {
332332
if (!this.project.keyboardOnlyEngine.isOpenning()) return;
333333
this.project.stageManager.selectAll();
334-
this.project.effects.addEffect(ViewOutlineFlashEffect.normal(Color.Green));
334+
toast.success(
335+
<div>
336+
<h2>已全选所有元素</h2>
337+
<p>
338+
{this.project.stageManager.getSelectedEntities().length}个实体+
339+
{this.project.stageManager.getSelectedAssociations().length}个关系=
340+
{this.project.stageManager.getSelectedStageObjects().length}个舞台对象
341+
</p>
342+
</div>,
343+
);
344+
this.project.effects.addEffect(ViewOutlineFlashEffect.normal(Color.Green.toNewAlpha(0.2)));
335345
});
336346
await this.project.keyBinds.create("textNodeToSection", "C-S-g", () => {
337347
this.project.sectionPackManager.textNodeToSection();

0 commit comments

Comments
 (0)