From 9867e3ff0a146f58cab32c13fba2bd5dcabeb775 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 19 Jan 2024 23:32:16 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/menus/Menu.ts | 2 +- app/src/protyle/render/av/sort.ts | 2 +- app/src/protyle/wysiwyg/commonHotkey.ts | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.ts index 960730c61..c1c087e25 100644 --- a/app/src/menus/Menu.ts +++ b/app/src/menus/Menu.ts @@ -212,7 +212,7 @@ export class MenuItem { if (options.element) { this.element.append(options.element); } else { - let html = `${options.label}`; + let html = `${options.label || " "}`; if (typeof options.iconHTML === "string") { html = options.iconHTML + html; } else { diff --git a/app/src/protyle/render/av/sort.ts b/app/src/protyle/render/av/sort.ts index fa489362a..085b10fc7 100644 --- a/app/src/protyle/render/av/sort.ts +++ b/app/src/protyle/render/av/sort.ts @@ -88,7 +88,7 @@ export const getSortsHTML = (columns: IAVColumn[], sorts: IAVSort[]) => { const genSortItem = (id: string) => { let sortHTML = ""; columns.forEach((item) => { - sortHTML += ``; + sortHTML += ``; }); return sortHTML; }; diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts index 68cf3ba50..639bd7954 100644 --- a/app/src/protyle/wysiwyg/commonHotkey.ts +++ b/app/src/protyle/wysiwyg/commonHotkey.ts @@ -52,12 +52,6 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen return true; } - if (matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event) || - matchHotKey(window.siyuan.config.keymap.general.dailyNote.custom, event)) { - // 阻止输入 https://ld246.com/article/1679618995926 - event.preventDefault(); - return true; - } if (matchHotKey(window.siyuan.config.keymap.editor.general.copyProtocolInMd.custom, event)) { const id = nodeElement ? nodeElement.getAttribute("data-node-id") : protyle.block.rootID; fetchPost("/api/block/getRefText", {id}, (response) => {