diff --git a/assets/script.js b/assets/script.js index 1dd11e7..71ba896 100644 --- a/assets/script.js +++ b/assets/script.js @@ -190,7 +190,12 @@ async function submitarticle(){ } async function articleInit(){ - + let articleContainerElement = document.getElementById("articlecreatecontainer"); + articleContainerElement.addEventListener("keyup", function (ev) { + if(ev.which === 27){ + togglearticlecreate(); + } + }) } async function onPageLoad() {