From c0a1e2420bce55e0250ded4d03d30dcbb99a674d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 13 Mar 2024 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=A4=8D=E5=88=B6=E7=B2=98=E8=B4=B4=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 19255c373..f578b0e33 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -240,7 +240,7 @@ export class WYSIWYG { this.element.addEventListener("copy", (event: ClipboardEvent & { target: HTMLElement }) => { window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373 // https://github.com/siyuan-note/siyuan/issues/4600 - if (event.target.tagName === "PROTYLE-HTML") { + if (event.target.tagName === "PROTYLE-HTML" || event.target.localName === "input") { event.stopPropagation(); return; } @@ -1255,7 +1255,7 @@ export class WYSIWYG { if (protyle.disabled) { return; } - if (event.target.tagName === "PROTYLE-HTML") { + if (event.target.tagName === "PROTYLE-HTML" || event.target.localName === "input") { event.stopPropagation(); return; } @@ -1714,7 +1714,7 @@ export class WYSIWYG { } window.siyuan.ctrlIsPressed = false; // https://github.com/siyuan-note/siyuan/issues/6373 // https://github.com/siyuan-note/siyuan/issues/4600 - if (event.target.tagName === "PROTYLE-HTML") { + if (event.target.tagName === "PROTYLE-HTML" || event.target.localName === "input") { event.stopPropagation(); return; }