diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.ts index 55e259454..ef6e269bf 100644 --- a/app/src/boot/globalEvent/keydown.ts +++ b/app/src/boot/globalEvent/keydown.ts @@ -588,7 +588,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => { if (item.getAttribute("data-type") === "navigation-file") { ids.push(item.getAttribute("data-node-id")); } - }) + }); if (matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event) && !window.siyuan.config.readonly) { if (isFile) { @@ -663,7 +663,7 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => { fetchPost("/api/filetree/duplicateDoc", { id: item, }); - }) + }); return true; } diff --git a/app/src/protyle/toolbar/util.ts b/app/src/protyle/toolbar/util.ts index 536144a54..16860c3a3 100644 --- a/app/src/protyle/toolbar/util.ts +++ b/app/src/protyle/toolbar/util.ts @@ -244,4 +244,4 @@ export const copyTextByType = async (ids: string[], } } writeText(text); -} +}; diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts index b65825543..ecc252dcf 100644 --- a/app/src/protyle/wysiwyg/commonHotkey.ts +++ b/app/src/protyle/wysiwyg/commonHotkey.ts @@ -55,9 +55,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen if (selectElements.length === 0) { selectElements.push(nodeElement); } - copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocolMd") + copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocolMd"); } else { - copyTextByType([protyle.block.rootID], "protocolMd") + copyTextByType([protyle.block.rootID], "protocolMd"); } event.preventDefault(); event.stopPropagation(); @@ -70,9 +70,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen if (selectElements.length === 0) { selectElements.push(nodeElement); } - copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "id") + copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "id"); } else { - copyTextByType([protyle.block.rootID], "id") + copyTextByType([protyle.block.rootID], "id"); } event.preventDefault(); event.stopPropagation(); @@ -84,9 +84,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen if (selectElements.length === 0) { selectElements.push(nodeElement); } - copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocol") + copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "protocol"); } else { - copyTextByType([protyle.block.rootID], "protocol") + copyTextByType([protyle.block.rootID], "protocol"); } event.preventDefault(); event.stopPropagation(); @@ -99,9 +99,9 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen if (selectElements.length === 0) { selectElements.push(nodeElement); } - copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "blockEmbed") + copyTextByType(selectElements.map(item => item.getAttribute("data-node-id")), "blockEmbed"); } else { - copyTextByType([protyle.block.rootID], "blockEmbed") + copyTextByType([protyle.block.rootID], "blockEmbed"); } event.preventDefault(); event.stopPropagation();