mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
a8d88060f1
commit
2994a95937
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ export const filterHotkey = (event: KeyboardEvent, app: App) => {
|
||||||
}
|
}
|
||||||
if (cardElement) {
|
if (cardElement) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
cardElement.dispatchEvent(new CustomEvent("click", {detail: event.key.toLowerCase()}));
|
cardElement.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: event.key.toLowerCase()}));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue