🐛 空行处插入 mp3 会多一个空的 mp3 块

This commit is contained in:
Vanessa 2022-07-16 16:22:02 +08:00
parent 724ab74566
commit f47d50e470

View File

@ -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);