This commit is contained in:
Vanessa 2024-11-21 10:36:02 +08:00
parent dea6ecd5b9
commit 98a096551a
3 changed files with 11 additions and 11 deletions

View file

@ -588,7 +588,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {
if (item.getAttribute("data-type") === "navigation-file") {
ids.push(item.getAttribute("data-node-id"));
}
})
});
if (matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event) && !window.siyuan.config.readonly) {
if (isFile) {
@ -663,7 +663,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {
fetchPost("/api/filetree/duplicateDoc", {
id: item,
});
})
});
return true;
}