mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 04:18:48 +01:00
This commit is contained in:
parent
da292a3887
commit
e436868c0d
1 changed files with 2 additions and 0 deletions
|
|
@ -1611,11 +1611,13 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
return;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.insertBefore.custom, event)) {
|
||||
nodeElement.querySelector(".img--select")?.classList.remove("img--select");
|
||||
insertEmptyBlock(protyle, "beforebegin");
|
||||
event.preventDefault();
|
||||
return true;
|
||||
}
|
||||
if (matchHotKey(window.siyuan.config.keymap.editor.general.insertAfter.custom, event)) {
|
||||
nodeElement.querySelector(".img--select")?.classList.remove("img--select");
|
||||
insertEmptyBlock(protyle, "afterend");
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue