From 87051328507bacb3442c5214169e3d40ee9c8af4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 30 May 2023 00:35:13 +0800 Subject: [PATCH] :rotating_light: --- app/src/boot/onGetConfig.ts | 12 ++++++------ app/src/config/keymap.ts | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts index 475ff57e2..cb66b6a5f 100644 --- a/app/src/boot/onGetConfig.ts +++ b/app/src/boot/onGetConfig.ts @@ -99,23 +99,23 @@ const mergePluginHotkey = (app: App) => { custom: command.hotkey, } }; - return + return; } if (!window.siyuan.config.keymap.plugin[plugin.name][command.langKey]) { command.customHotkey = command.hotkey; window.siyuan.config.keymap.plugin[plugin.name][command.langKey] = { default: command.hotkey, custom: command.hotkey, - } + }; return; } if (window.siyuan.config.keymap.plugin[plugin.name][command.langKey]) { command.customHotkey = window.siyuan.config.keymap.plugin[plugin.name][command.langKey].custom || command.hotkey; - window.siyuan.config.keymap.plugin[plugin.name][command.langKey]["default"] = command.hotkey + window.siyuan.config.keymap.plugin[plugin.name][command.langKey]["default"] = command.hotkey; } - }) - }) -} + }); + }); +}; export const onGetConfig = (isStart: boolean, app: App) => { const matchKeymap1 = matchKeymap(Constants.SIYUAN_KEYMAP.general, "general"); diff --git a/app/src/config/keymap.ts b/app/src/config/keymap.ts index d30b3890a..e58abc445 100644 --- a/app/src/config/keymap.ts +++ b/app/src/config/keymap.ts @@ -33,9 +33,9 @@ export const keymap = { return html; }, genHTML(app: App) { - let pluginHtml = '' + let pluginHtml = ""; app.plugins.forEach(item => { - let commandHTML = '' + let commandHTML = ""; item.commands.forEach(command => { const keyValue = updateHotkeyTip(command.customHotkey); commandHTML += `