Skip to content

Build your personal knowledge base with Trilium Notes

feat(popup_editor): add shortcut in note tree

Elian Doranf5bffc38f1b8
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index 0b89162ea3..12647e2077 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();