From f5bffc38f1b8af52b6c497d25226182354e9e47f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 10 Jul 2025 19:54:51 +0300 Subject: [PATCH] feat(popup_editor): add shortcut in note tree --- apps/client/src/widgets/note_tree.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts index 0b89162ea..12647e207 100644 --- a/apps/client/src/widgets/note_tree.ts +++ b/apps/client/src/widgets/note_tree.ts @@ -244,9 +244,13 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { const notePath = treeService.getNotePath(node); if (notePath) { - appContext.tabManager.openTabWithNoteWithHoisting(notePath, { - activate: e.shiftKey ? true : false - }); + if (e.ctrlKey) { + appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath }); + } else { + appContext.tabManager.openTabWithNoteWithHoisting(notePath, { + activate: e.shiftKey ? true : false + }); + } } e.stopPropagation();