mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:07:01 +00:00
This commit is contained in:
@@ -93,6 +93,9 @@ export const getContentByInlineHTML = (range: Range, cb: (content: string) => vo
|
||||
|
||||
export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||
editorElement.addEventListener("keydown", async (event: KeyboardEvent & { target: HTMLElement }) => {
|
||||
if (!event.key) {
|
||||
return;
|
||||
}
|
||||
if (event.target.localName === "protyle-html" || event.target.localName === "input") {
|
||||
event.stopPropagation();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user