Skip to content

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

:zap:

Vanessa1cd6d87a9889
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index f06a115ced..048d8476ad 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -2592,7 +2592,8 @@ export class WYSIWYG {
}
if (event.eventPhase !== 3 && !event.shiftKey && (event.key.indexOf("Arrow") > -1 || event.key === "Home" || event.key === "End" || event.key === "PageUp" || event.key === "PageDown") && !event.isComposing) {
- if (nodeElement) {
+ if (nodeElement && protyle.hint.element.classList.contains("fn__none") &&
+ window.siyuan.menus.menu.element.classList.contains("fn__none")) {
clearSelect(["img", "av"], protyle.wysiwyg.element);
this.setEmptyOutline(protyle, nodeElement);
if (range.toString() === "" && !nodeElement.classList.contains("protyle-wysiwyg--select")) {