Skip to content

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

:iphone:

Vanessa51b710543d42
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.ts
index 3dea6777ab..9c51f7f680 100644
--- a/app/src/mobile/util/keyboardToolbar.ts
+++ b/app/src/mobile/util/keyboardToolbar.ts
@@ -223,11 +223,6 @@ export const initKeyboardToolbar = () => {
} else if (type === "redo") {
protyle.undo.redo(protyle);
return;
- } else if (type === "goinline") {
- const dynamicElements = document.querySelectorAll("#keyboardToolbar .keyboard__dynamic");
- dynamicElements[1].classList.remove("fn__none");
- dynamicElements[0].classList.add("fn__none");
- return;
}
if (getSelection().rangeCount === 0) {
return;
@@ -245,6 +240,12 @@ export const initKeyboardToolbar = () => {
range.collapse(true);
focusByRange(range);
return;
+ } else if (type === "goinline") {
+ const dynamicElements = document.querySelectorAll("#keyboardToolbar .keyboard__dynamic");
+ dynamicElements[1].classList.remove("fn__none");
+ dynamicElements[0].classList.add("fn__none");
+ focusByRange(range);
+ return;
} else if (["a", "block-ref", "inline-math", "inline-memo", "text"].includes(type)) {
protyle.toolbar.element.querySelector(`[data-type="${type}"]`).dispatchEvent(new CustomEvent("click"));
return;