Skip to content

Build your personal knowledge base with Trilium Notes

feat(popup_editor): add shortcut in links

Elian Doranf04b75fd36bb
diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.ts
index 3e357ee77c..cc6d6f66f7 100644
--- a/apps/client/src/services/link.ts
+++ b/apps/client/src/services/link.ts
@@ -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 });