Vanessa 2025-05-05 11:11:27 +08:00
parent e436868c0d
commit 7994ea861a

View file

@ -1611,6 +1611,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
if (matchHotKey(window.siyuan.config.keymap.editor.general.insertBefore.custom, event)) {
// https://github.com/siyuan-note/siyuan/issues/14290#issuecomment-2846594701
nodeElement.querySelector(".img--select")?.classList.remove("img--select");
insertEmptyBlock(protyle, "beforebegin");
event.preventDefault();