From d3165859051746367733e486fb26733ee05ed8f1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 15 Oct 2023 18:16:49 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=9B=BE=E7=89=87=E5=89=AA=E5=88=87?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=20=20=20=20=20=20=E6=AE=B5=E8=90=BD?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E5=9B=BE=E7=89=87=E6=97=B6=EF=BC=8C=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E5=9B=BE=E7=89=87=EF=BC=8C=E4=BD=BF=E7=94=A8=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E9=94=AE=E8=BF=9B=E8=A1=8C=E5=89=AA=E5=88=87=E6=88=96?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E4=BC=9A=E6=93=8D=E4=BD=9C=E6=95=B4=E4=B8=AA?= =?UTF-8?q?=E6=AE=B5=E8=90=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/keydown.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts index e592b9922..3e6789935 100644 --- a/app/src/protyle/wysiwyg/keydown.ts +++ b/app/src/protyle/wysiwyg/keydown.ts @@ -1485,7 +1485,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => { } // 支持非编辑块复制 https://ld246.com/article/1695353747104 - if ((matchHotKey("⌘X", event) || matchHotKey("⌘C", event)) && selectText === "") { + if ((matchHotKey("⌘X", event) || matchHotKey("⌘C", event)) && + selectText === "" && + !nodeElement.querySelector(".img--select")) { if (protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select").length === 0) { if (nodeElement.dataset.type !== "NodeHTMLBlock") { // html 块不需要选中 https://github.com/siyuan-note/siyuan/issues/8706