mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(popup_editor): use cmd on macos
This commit is contained in:
parent
f1fc15e115
commit
91572ab8b9
@ -394,7 +394,7 @@ function linkContextMenu(e: PointerEvent) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.ctrlKey && e.button === 2) {
|
if (utils.isCtrlKey(e) && e.button === 2) {
|
||||||
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
|
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return;
|
return;
|
||||||
|
@ -713,7 +713,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$tree.on("contextmenu", ".fancytree-node", (e) => {
|
this.$tree.on("contextmenu", ".fancytree-node", (e) => {
|
||||||
if (!e.ctrlKey) {
|
if (!utils.isCtrlKey(e)) {
|
||||||
this.showContextMenu(e);
|
this.showContextMenu(e);
|
||||||
} else {
|
} else {
|
||||||
const node = $.ui.fancytree.getNode(e as unknown as Event);
|
const node = $.ui.fancytree.getNode(e as unknown as Event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user