Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/11980

Vanessaf1aa874ddb98
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index c6ab494ea8..9b213af423 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2227,8 +2227,11 @@ export class WYSIWYG {
return;
}
- // 如果aLink 为空时,当 data-type="a inline-math" 可继续后续操作
- if (aElement && range.toString() === "" && aLink) {
+ if (aElement &&
+ // https://github.com/siyuan-note/siyuan/issues/11980
+ (event.shiftKey || range.toString() === "") &&
+ // 如果aLink 为空时,当 data-type="a inline-math" 可继续后续操作
+ aLink) {
event.stopPropagation();
event.preventDefault();
openLink(protyle, aLink, event, ctrlIsPressed);