Skip to content

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

:bug: Prevent database header toolbar taps from opening the mobile keyboard https://github.com/siyuan-note/siyuan/issues/19296

Daniel91d5bcd9cb28
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index ae778ca7d9..0d56288925 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -4562,6 +4562,10 @@ export class WYSIWYG {
return;
}
}
+ // 数据库表头工具栏不涉及编辑器选区,提前处理,避免 getEditorRange 兜底聚焦编辑器时在移动端唤起软键盘
+ if (hasClosestByClassName(event.target, "av__views") && avClick(protyle, event)) {
+ return;
+ }
const range = getEditorRange(this.element);
const resumeBlockHint = !protyle.hint.element.classList.contains("fn__none") &&
Constants.BLOCK_HINT_KEYS.includes(protyle.hint.splitChar);