From 1e11df1222e81110d15de69bffcbc2c9495cf480 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 21 Mar 2023 11:48:44 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7734 --- app/src/protyle/wysiwyg/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 5a2e315b7..60586683d 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -2025,7 +2025,7 @@ export class WYSIWYG { focusByRange(range); } - if (ctrlIsPressed) { + if (ctrlIsPressed && range.toString() === "") { let ctrlElement = hasClosestBlock(event.target); if (ctrlElement) { ctrlElement = getTopAloneElement(ctrlElement) as HTMLElement;