This commit is contained in:
Vanessa 2023-09-17 22:27:55 +08:00
parent 40218fa1a0
commit 3925d5d1c4
11 changed files with 22 additions and 24 deletions

View file

@ -165,7 +165,7 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
protyle = item.editor.protyle;
return true;
}
})
});
}
if (!protyle && activeTabElement) {
const tab = getInstanceById(activeTabElement.getAttribute("data-id")) as Tab;
@ -187,11 +187,11 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
protyle = editorItem.protyle;
return true;
}
})
});
if (protyle) {
return true
return true;
}
})
});
}
if (!protyle) {
models.backlink.find(item => {
@ -209,7 +209,7 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
}
return true;
}
})
});
}
if (!protyle) {
models.editor.find(item => {