mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +01:00
🚨
This commit is contained in:
parent
4c6b695dae
commit
6a37b86613
7 changed files with 14 additions and 16 deletions
|
|
@ -429,13 +429,13 @@ const fileTreeKeydown = (app: App, event: KeyboardEvent) => {
|
|||
}
|
||||
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.quickMakeCard.custom, event)) {
|
||||
const blockIDs: string[] = []
|
||||
const blockIDs: string[] = [];
|
||||
liElements.forEach(item => {
|
||||
const id = item.getAttribute("data-node-id")
|
||||
const id = item.getAttribute("data-node-id");
|
||||
if (id) {
|
||||
blockIDs.push(id)
|
||||
blockIDs.push(id);
|
||||
}
|
||||
})
|
||||
});
|
||||
if (blockIDs.length > 0) {
|
||||
transaction(undefined, [{
|
||||
action: "addFlashcards",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue