Skip to content

Build your personal knowledge base with Trilium Notes

fix(link): popup triggering with bare right click

Elian Doran0f129734aea7
diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.ts
index c03ab536a0..b9141ff0fb 100644
--- a/apps/client/src/services/link.ts
+++ b/apps/client/src/services/link.ts
@@ -316,7 +316,7 @@ function goToLinkExt(evt: MouseEvent | JQuery.ClickEvent | JQuery.MouseDownEvent
const openInNewWindow = isLeftClick && evt?.shiftKey && !ctrlKey;
if (notePath) {
- if (openInPopup) {
+ if (isLeftClick && openInPopup) {
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
} else if (openInNewWindow) {
appContext.triggerCommand("openInWindow", { notePath, viewScope });