From f22a28a73eca0b921ad434597f6b0005f94de135 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 13 Oct 2024 22:55:11 +0800 Subject: [PATCH] =?UTF-8?q?shift=20=E5=90=91=E4=B8=8A=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E4=B8=89=E8=A1=8C=E5=90=8E=EF=BC=8C=E6=9C=80=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E5=85=89=E6=A0=87=E4=BC=9A=E4=B9=B1=E8=B7=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/commonHotkey.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts index d77fdd240..f009cb9aa 100644 --- a/app/src/protyle/wysiwyg/commonHotkey.ts +++ b/app/src/protyle/wysiwyg/commonHotkey.ts @@ -104,10 +104,7 @@ export const upSelect = (options: { // 当第一行太长自然换行的情况 options.range.getBoundingClientRect().top - nodeEditableElement.getBoundingClientRect().top - parseInt(getComputedStyle(nodeEditableElement).paddingTop) < 14) { setFirstNodeRange(nodeEditableElement, options.range); - if (!isMac()) { - // windows 中 shift 向上选中三行后,最后的光标会乱跳 - options.event.preventDefault(); - } + options.event.preventDefault(); } return; }