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/7853

Vanessafbcf15a59e82
diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.ts
index 09888dfdfc..270d962651 100644
--- a/app/src/mobile/editor.ts
+++ b/app/src/mobile/editor.ts
@@ -32,7 +32,6 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
});
if (blockElement) {
pushBack();
- focusBlock(blockElement);
scrollCenter(window.siyuan.mobile.editor.protyle, blockElement, true);
closePanel();
return;
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 645e78a4ed..9ebfb3f026 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -62,6 +62,7 @@ import {countBlockWord, countSelectWord} from "../../layout/status";
import {showMessage} from "../../dialog/message";
import {getBacklinkHeadingMore, loadBreadcrumb} from "./renderBacklink";
import {removeSearchMark} from "../toolbar/util";
+import {activeBlur, hideKeyboardToolbar} from "../../mobile/util/keyboardToolbar";
export class WYSIWYG {
public lastHTMLs: { [key: string]: string } = {};
@@ -1539,6 +1540,8 @@ export class WYSIWYG {
fetchPost("/api/block/checkBlockFold", {id: refBlockId}, (foldResponse) => {
/// #if MOBILE
openMobileFileById(refBlockId, foldResponse.data ? [Constants.CB_GET_ALL, Constants.CB_GET_HL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT]);
+ activeBlur();
+ hideKeyboardToolbar();
/// #else
if (aElement) {
window.open(aElement.getAttribute("data-href"));
@@ -1669,6 +1672,8 @@ export class WYSIWYG {
const embedId = embedItemElement.getAttribute("data-id");
/// #if MOBILE
openMobileFileById(embedId, [Constants.CB_GET_ALL]);
+ activeBlur();
+ hideKeyboardToolbar();
/// #else
if (event.shiftKey) {
openFileById({