diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.ts index 92261d172..c03ab536a 100644 --- a/apps/client/src/services/link.ts +++ b/apps/client/src/services/link.ts @@ -394,7 +394,7 @@ function linkContextMenu(e: PointerEvent) { return; } - if (e.ctrlKey && e.button === 2) { + if (utils.isCtrlKey(e) && e.button === 2) { appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath }); e.preventDefault(); return; diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts index e77337aa7..3b9367f1f 100644 --- a/apps/client/src/widgets/note_tree.ts +++ b/apps/client/src/widgets/note_tree.ts @@ -713,7 +713,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { }); } else { this.$tree.on("contextmenu", ".fancytree-node", (e) => { - if (!e.ctrlKey) { + if (!utils.isCtrlKey(e)) { this.showContextMenu(e); } else { const node = $.ui.fancytree.getNode(e as unknown as Event);