mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 02:10:15 +01:00
This commit is contained in:
parent
c42f8665c5
commit
7b2f7be820
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue