mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +01:00
This commit is contained in:
parent
b1568db827
commit
d81be71485
8 changed files with 31 additions and 93 deletions
|
|
@ -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") ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue