Skip to content

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

:iphone: 键盘收起

Vanessafbf1b632ee02
diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.ts
index 78fd2adbbb..6f0c4db21f 100644
--- a/app/src/mobile/util/showKeyboardToolbar.ts
+++ b/app/src/mobile/util/showKeyboardToolbar.ts
@@ -85,8 +85,10 @@ export const initKeyboardToolbar = () => {
}
if (type === "outdent") {
listOutdent(protyle, [nodeElement.parentElement], range);
+ focusByRange(range);
} else if (type === "indent") {
listIndent(protyle, [nodeElement.parentElement], range);
+ focusByRange(range);
}
});
};
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 2954911091..cb1ea3eba6 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -621,6 +621,9 @@ export class Toolbar {
if (wbrElement) {
wbrElement.remove();
}
+ if (isMobile()) {
+ focusByRange(this.range);
+ }
}
public showFileAnnotationRef(protyle: IProtyle, refElement: HTMLElement) {