fix(link): popup triggering with bare right click

This commit is contained in:
Elian Doran 2025-07-17 11:19:29 +03:00
parent 275aacfba9
commit 0f129734ae
No known key found for this signature in database

View File

@ -316,7 +316,7 @@ function goToLinkExt(evt: MouseEvent | JQuery.ClickEvent | JQuery.MouseDownEvent
const openInNewWindow = isLeftClick && evt?.shiftKey && !ctrlKey; const openInNewWindow = isLeftClick && evt?.shiftKey && !ctrlKey;
if (notePath) { if (notePath) {
if (openInPopup) { if (isLeftClick && openInPopup) {
appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath }); appContext.triggerCommand("openInPopup", { noteIdOrPath: notePath });
} else if (openInNewWindow) { } else if (openInNewWindow) {
appContext.triggerCommand("openInWindow", { notePath, viewScope }); appContext.triggerCommand("openInWindow", { notePath, viewScope });