diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index e1e927bdcbf..ab376d6d5e6 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