From bb8ed8825930436e28f8b8878a5dbe781ed4aa28 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 1 May 2024 16:26:14 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11209 --- app/src/protyle/wysiwyg/keydown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index 9fe59d58a..ac087c308 100644 --- a/app/src/protyle/wysiwyg/keydown.ts +++ b/app/src/protyle/wysiwyg/keydown.ts @@ -806,7 +806,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { event.stopPropagation(); event.preventDefault(); return; - } else + } else { // 图片前 Delete 无效 https://github.com/siyuan-note/siyuan/issues/11209 let nextSibling = hasNextSibling(range.startContainer) as Element; if (nextSibling) {