diff --git a/plugin/preload.js b/plugin/preload.js index 481d488..481e84a 100644 --- a/plugin/preload.js +++ b/plugin/preload.js @@ -94,8 +94,7 @@ const shortCodes = [ electron.clipboard.writeText(text); }), (send = (text) => { - copyTo(text); - quickcommand.simulatePaste(); + utools.hideMainWindowTypeString(text); }), ]; diff --git a/src/components/editor/CommandLanguageBar.vue b/src/components/editor/CommandLanguageBar.vue index eb48c01..7957d8e 100644 --- a/src/components/editor/CommandLanguageBar.vue +++ b/src/components/editor/CommandLanguageBar.vue @@ -35,32 +35,34 @@
- + + + - - - - - - {{ - ["录制按键", "快捷动作", "查看文档"][index] - }} - @@ -130,7 +134,7 @@ program.ext === this.modelValue.customOptions.ext - ) + (program) => program.ext === this.modelValue.customOptions.ext + ); if (language.length) { - this.$emit('program-changed', language[0].name) + this.$emit("program-changed", language[0].name); } }, handleQuickCommandAction(index) { const actions = [ - () => this.showRecorder = true, - () => this.showActions = true, - () => this.showHelp() - ] - actions[index]() + () => (this.showRecorder = true), + () => (this.showActions = true), + () => this.showHelp(), + ]; + actions[index](); }, addAction(text) { - this.$emit('add-action', text) + this.$emit("add-action", text); }, showHelp() { - window.showUb.docs() - } + window.showUb.docs(); + }, + }, +}; + + +