mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 11:16:02 +08:00
feat(popup_editor): add shortcut in links
This commit is contained in:
parent
f5bffc38f1
commit
f04b75fd36
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue