From 2994a9593738e76099ee3321756ebfe7fb065cfa Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 11 Nov 2025 10:32:42 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16241 --- app/src/boot/globalEvent/commonHotkey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/boot/globalEvent/commonHotkey.ts b/app/src/boot/globalEvent/commonHotkey.ts index 964eb1932..fc9231146 100644 --- a/app/src/boot/globalEvent/commonHotkey.ts +++ b/app/src/boot/globalEvent/commonHotkey.ts @@ -150,7 +150,7 @@ export const filterHotkey = (event: KeyboardEvent, app: App) => { } if (cardElement) { event.preventDefault(); - cardElement.dispatchEvent(new CustomEvent("click", {detail: event.key.toLowerCase()})); + cardElement.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: event.key.toLowerCase()})); return true; } }