Skip to content

Build your personal knowledge base with Trilium Notes

fix(tree): clipboard operations no longer working

Elian Doran5857b2bd8414
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts
index 8ad6811c38..296137b16b 100644
--- a/apps/client/src/widgets/note_tree.ts
+++ b/apps/client/src/widgets/note_tree.ts
@@ -1591,7 +1591,13 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
hotKeyMap[shortcutService.normalizeShortcut(shortcut)] = (node) => {
const notePath = treeService.getNotePath(node);
- this.triggerCommand(action.actionName, { node, notePath });
+ this.triggerCommand(action.actionName, {
+ node,
+ notePath,
+ noteId: node.data.noteId,
+ selectedOrActiveBranchIds: this.getSelectedOrActiveBranchIds(node),
+ selectedOrActiveNoteIds: this.getSelectedOrActiveNoteIds(node)
+ });
return false;
};