This commit is contained in:
parent
354ba9681a
commit
29270b4e88
1 changed files with 7 additions and 0 deletions
|
@ -558,6 +558,13 @@ const renderPDF = async (id: string) => {
|
|||
});
|
||||
setPadding();
|
||||
renderPreview(response.data);
|
||||
window.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Escape") {
|
||||
const {ipcRenderer} = require("electron");
|
||||
ipcRenderer.send("${Constants.SIYUAN_CMD}", "destroy")
|
||||
event.preventDefault();
|
||||
}
|
||||
})
|
||||
});
|
||||
</script></body></html>`;
|
||||
fetchPost("/api/export/exportTempContent", {content: html}, (response) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue