This commit is contained in:
Vanessa 2023-03-27 10:42:38 +08:00
parent 6eb2387aba
commit b14fac3918
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ export const abcRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
return;
}
if (abcElements.length > 0) {
addScript(`${cdn}/js/abcjs/abcjs-basic-min.js?v=6.1.9`, "protyleAbcjsScript").then(() => {
addScript(`${cdn}/js/abcjs/abcjs-basic-min.js?v=6.2.0`, "protyleAbcjsScript").then(() => {
abcElements.forEach((e: HTMLDivElement) => {
if (e.getAttribute("data-render") === "true") {
return;

View File

@ -390,7 +390,7 @@ export const globalShortcut = () => {
const target = event.target as HTMLElement;
if (!event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey &&
!["INPUT", "TEXTAREA"].includes(target.tagName) &&
["1", "2", "3", "4", "j", "k", "l", ";", "s", " ", "p"].includes(event.key.toLowerCase())) {
["0", "1", "2", "3", "4", "j", "k", "l", ";", "s", " ", "p"].includes(event.key.toLowerCase())) {
const openCardDialog = window.siyuan.dialogs.find(item => {
if (item.element.getAttribute("data-key") === window.siyuan.config.keymap.general.riffCard.custom) {
return true;

File diff suppressed because one or more lines are too long