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

Vanessa0239b88c43cf
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts
index 23af451b4e..0eed9ca9e1 100644
--- a/app/src/util/pathName.ts
+++ b/app/src/util/pathName.ts
@@ -211,8 +211,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
}, flashcard);
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement;
+ inputElement.value = window.siyuan.storage[Constants.LOCAL_MOVE_PATH].k;
/// #if !MOBILE
- inputElement.focus();
+ inputElement.select();
/// #endif
const inputEvent = (event?: InputEvent) => {
if (event && event.isComposing) {
@@ -324,7 +325,6 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
y: rect.bottom
});
}
- inputElement.value = window.siyuan.storage[Constants.LOCAL_MOVE_PATH].k;
inputEvent();
inputElement.addEventListener("compositionend", (event: InputEvent) => {
inputEvent(event);