mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 22:23:28 +08:00
This commit is contained in:
parent
f40ed985e1
commit
510d6475b1
@ -65,6 +65,11 @@ export const refMenu = (protyle: IProtyle, element: HTMLElement) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
inputElement.addEventListener("keydown", (event) => {
|
||||||
|
if (event.key === "Enter" && !event.isComposing) {
|
||||||
|
window.siyuan.menus.menu.remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).element);
|
}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
|
Loading…
Reference in New Issue
Block a user