浏览代码

:art: https://github.com/siyuan-note/siyuan/issues/9410

Vanessa 1 年之前
父节点
当前提交
99e3f121be
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      app/src/layout/dock/Outline.ts

+ 9 - 0
app/src/layout/dock/Outline.ts

@@ -130,6 +130,15 @@ export class Outline extends Model {
                         });
                     });
                 }
+            },
+            ctrlClick(element: HTMLElement) {
+                const id = element.getAttribute("data-node-id");
+                openFileById({
+                    app: options.app,
+                    id,
+                    action: [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL, Constants.CB_GET_HTML],
+                    zoomIn: true,
+                });
             }
         });
         // 为了快捷键的 dispatch