mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-13 23:52:29 +08:00
This commit is contained in:
parent
a610f558fd
commit
0239b88c43
@ -211,8 +211,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
|
|||||||
}, flashcard);
|
}, flashcard);
|
||||||
|
|
||||||
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement;
|
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement;
|
||||||
|
inputElement.value = window.siyuan.storage[Constants.LOCAL_MOVE_PATH].k;
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
inputElement.focus();
|
inputElement.select();
|
||||||
/// #endif
|
/// #endif
|
||||||
const inputEvent = (event?: InputEvent) => {
|
const inputEvent = (event?: InputEvent) => {
|
||||||
if (event && event.isComposing) {
|
if (event && event.isComposing) {
|
||||||
@ -324,7 +325,6 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
|
|||||||
y: rect.bottom
|
y: rect.bottom
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
inputElement.value = window.siyuan.storage[Constants.LOCAL_MOVE_PATH].k;
|
|
||||||
inputEvent();
|
inputEvent();
|
||||||
inputElement.addEventListener("compositionend", (event: InputEvent) => {
|
inputElement.addEventListener("compositionend", (event: InputEvent) => {
|
||||||
inputEvent(event);
|
inputEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user