Skip to content

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

:iphone: 编辑数据库单元格

Vanessa28f1bc782bf9
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index 5dafa19282..d8e33e8ce0 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -609,9 +609,13 @@ export const initKeyboardToolbar = () => {
const range = getSelection().getRangeAt(0);
if (type === "done") {
if (toolbarElement.clientHeight > 100) {
+ if (isInHarmony() || isInAndroid()) {
+ setTimeout(() => focusByRange(range), Constants.TIMEOUT_TRANSITION);
+ } else {
+ focusByRange(range);
+ }
hideKeyboardToolbarUtil();
callMobileAppShowKeyboard();
- setTimeout(() => focusByRange(range), 256);
} else {
activeBlur();
}
@@ -692,9 +696,13 @@ export const initKeyboardToolbar = () => {
return;
} else if (type === "add") {
if (buttonElement.classList.contains("protyle-toolbar__item--current")) {
+ if (isInHarmony() || isInAndroid()) {
+ setTimeout(() => focusByRange(range), Constants.TIMEOUT_TRANSITION);
+ } else {
+ focusByRange(range);
+ }
hideKeyboardToolbarUtil();
callMobileAppShowKeyboard();
- setTimeout(() => focusByRange(range), 256);
} else {
(document.activeElement as HTMLElement)?.blur();
buttonElement.classList.add("protyle-toolbar__item--current");