@tmagic/editor 1.2.7 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1539,7 +1539,7 @@ class Editor$1 extends BaseService {
1539
1539
  historyService.resetState();
1540
1540
  }
1541
1541
  if (node?.id) {
1542
- this.get("stage")?.renderer.runtime?.getApp?.()?.emit(
1542
+ this.get("stage")?.renderer.runtime?.getApp?.().page?.emit(
1543
1543
  "editor:select",
1544
1544
  {
1545
1545
  node,
@@ -4252,10 +4252,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4252
4252
  idsLength > checkedKeysLength ? checkedKeys.value : ids
4253
4253
  ).length) {
4254
4254
  tree.value?.setCheckedKeys([], false);
4255
- [currentNodeKey.value] = ids;
4256
4255
  checkedKeys.value = ids.filter((id) => id !== page.value?.id);
4257
4256
  expandedKeys.value = union(expandedKeys.value, ids);
4258
4257
  }
4258
+ [currentNodeKey.value] = ids;
4259
+ setTimeout(() => {
4260
+ tree.value?.setCurrentKey(currentNodeKey.value);
4261
+ });
4259
4262
  });
4260
4263
  watch(isMultiSelect, (isMultiSelect2) => {
4261
4264
  if (!isMultiSelect2) {
@@ -4300,6 +4303,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
4300
4303
  clicked.value = !clicked.value;
4301
4304
  };
4302
4305
  const checkHandler = (data, { checkedNodes }) => {
4306
+ if (!isCtrlKeyDown.value && nodes.value.length < 2) {
4307
+ return;
4308
+ }
4303
4309
  if (checkedNodes.length > 0) {
4304
4310
  multiSelect(checkedNodes.map((node) => node.id));
4305
4311
  } else {