Vanessa 2022-12-22 11:08:25 +08:00
parent b1568db827
commit d81be71485
8 changed files with 31 additions and 93 deletions

View file

@ -43,6 +43,7 @@ import {editor} from "../config/editor";
import {hintMoveBlock} from "../protyle/hint/extend";
import {Backlink} from "../layout/dock/Backlink";
import {openHistory} from "../history/history";
import {openCard} from "../card/openCard";
const getRightBlock = (element: HTMLElement, x: number, y: number) => {
let index = 1;
@ -523,6 +524,11 @@ export const globalShortcut = () => {
if (matchDock) {
return;
}
if (matchHotKey(window.siyuan.config.keymap.general.riffCard.custom, event)) {
openCard()
event.preventDefault();
return;
}
if (matchHotKey(window.siyuan.config.keymap.general.dailyNote.custom, event)) {
newDailyNote();
if (target.classList.contains("protyle-wysiwyg") ||