mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 18:41:00 +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;
|
return;
|
||||||
}
|
}
|
||||||
if (abcElements.length > 0) {
|
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) => {
|
abcElements.forEach((e: HTMLDivElement) => {
|
||||||
if (e.getAttribute("data-render") === "true") {
|
if (e.getAttribute("data-render") === "true") {
|
||||||
return;
|
return;
|
||||||
|
@ -390,7 +390,7 @@ export const globalShortcut = () => {
|
|||||||
const target = event.target as HTMLElement;
|
const target = event.target as HTMLElement;
|
||||||
if (!event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey &&
|
if (!event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey &&
|
||||||
!["INPUT", "TEXTAREA"].includes(target.tagName) &&
|
!["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 => {
|
const openCardDialog = window.siyuan.dialogs.find(item => {
|
||||||
if (item.element.getAttribute("data-key") === window.siyuan.config.keymap.general.riffCard.custom) {
|
if (item.element.getAttribute("data-key") === window.siyuan.config.keymap.general.riffCard.custom) {
|
||||||
return true;
|
return true;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user