Skip to content

Build your personal knowledge base with Trilium Notes

fix(popup_editor): use cmd on macos

Elian Doran91572ab8b990
diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.ts
index 92261d172a..c03ab536a0 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 e77337aa77..3b9367f1f7 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);