|
@@ -558,6 +558,13 @@ const renderPDF = async (id: string) => {
|
|
});
|
|
});
|
|
setPadding();
|
|
setPadding();
|
|
renderPreview(response.data);
|
|
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>`;
|
|
</script></body></html>`;
|
|
fetchPost("/api/export/exportTempContent", {content: html}, (response) => {
|
|
fetchPost("/api/export/exportTempContent", {content: html}, (response) => {
|