Vanessa 2026-02-22 18:27:55 +08:00
parent c42f8665c5
commit 7b2f7be820

View file

@ -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;