feat(popup_editor): add shortcut in links

This commit is contained in:
Elian Doran 2025-07-10 19:56:13 +03:00
parent f5bffc38f1
commit f04b75fd36
No known key found for this signature in database

View File

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