Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(popup_editor): add shortcut in links
Elian Doranf04b75fd36bb
diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.tsindex 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.MouseDownEventconst 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 });