From 50a84e9e9f6ce165a59a8473629a68f8cd4a5e52 Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:25:05 +0800 Subject: [PATCH] :bug: Fix(custom): fix an issue shortkey can't be disabled ISSUES CLOSED: #403 --- src/renderer/pages/ShortKey.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/pages/ShortKey.vue b/src/renderer/pages/ShortKey.vue index 70c06e39..8095b43b 100644 --- a/src/renderer/pages/ShortKey.vue +++ b/src/renderer/pages/ShortKey.vue @@ -112,6 +112,7 @@ import { Edit, KeyboardIcon, XIcon } from 'lucide-vue-next' import { onBeforeMount, onBeforeUnmount, ref, watch } from 'vue' import { useI18n } from 'vue-i18n' +import { getRawData } from '@/utils/common' import { configPaths } from '@/utils/configPaths' import { getConfig } from '@/utils/dataSender' import { IRPCActionType } from '@/utils/enum' @@ -151,7 +152,8 @@ function calcOriginShowName(item: string) { function toggleEnable(item: IShortKeyConfig) { const status = !item.enable item.enable = status - window.electron.sendRPC(IRPCActionType.SHORTKEY_BIND_OR_UNBIND, item, item.from) + console.log('Toggling shortKey:', item.name, 'to', status ? 'enabled' : 'disabled') + window.electron.sendRPC(IRPCActionType.SHORTKEY_BIND_OR_UNBIND, getRawData(item), item.from || '') } function keyDetect(event: KeyboardEvent) {