From 99e3f121bef9bb1809f0ff08d2be0e24cc69e6a8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 15 Oct 2023 22:13:55 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9410 --- app/src/layout/dock/Outline.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index e1e927bdc..ab376d6d5 100644 --- a/app/src/layout/dock/Outline.ts +++ b/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