This commit is contained in:
Vanessa 2022-07-16 23:25:49 +08:00
parent 5c78847d0d
commit 412f6d0303

View file

@ -985,6 +985,7 @@ const fileTreeKeydown = (event: KeyboardEvent) => {
return true;
}
if (event.key === "Delete" || (event.key === "Backspace" && isMac())) {
window.siyuan.menus.menu.remove();
if (isFile) {
deleteFile(notebookId, pathString, getDisplayName(liElement.getAttribute("data-name"), false, true));
} else {