mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
6eb2387aba
commit
b14fac3918
@ -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;
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user