fix(popup_editor): use cmd on macos

This commit is contained in:
Elian Doran 2025-07-11 22:53:14 +03:00
parent f1fc15e115
commit 91572ab8b9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);