Skip to content

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

:art: shift+click 失效

Vanessa46b4406806df
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 5370064c6f..5320c46502 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -493,6 +493,7 @@ export class WYSIWYG {
previousList.concat(nextList).forEach(item => {
item.classList.add("av__gallery-item--select");
});
+ event.preventDefault();
} else if (startElement && endElement && !startElement.isSameNode(endElement)) {
let toDown = true;
const startRect = startElement.getBoundingClientRect();
@@ -581,8 +582,8 @@ export class WYSIWYG {
focusBlock(selectElements[0], protyle.wysiwyg.element, false);
}
}
+ event.preventDefault();
}
- event.preventDefault();
return;
}
if (isOnlyMeta(event) && !event.shiftKey && !event.altKey) {