From f47d50e4701dd7e77955f9df5c50f5cb32db4881 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 16 Jul 2022 16:22:02 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=A9=BA=E8=A1=8C=E5=A4=84=E6=8F=92?= =?UTF-8?q?=E5=85=A5=20mp3=20=E4=BC=9A=E5=A4=9A=E4=B8=80=E4=B8=AA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=20mp3=20=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/toolbar/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 6efce2cd1..e147b1bb8 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1169,6 +1169,8 @@ export class Toolbar { upDownHint(this.subElement.lastElementChild.lastElementChild as HTMLElement, event); if (event.key === "Enter") { hintRenderAssets(this.subElement.querySelector(".b3-list-item--focus").getAttribute("data-value"), protyle); + // 空行处插入 mp3 会多一个空的 mp3 块 + event.preventDefault(); } else if (event.key === "Escape") { this.subElement.classList.add("fn__none"); focusByRange(this.range);