diff --git a/static/skin/index.js b/static/skin/index.js index 7d892e98a..80ad0e77d 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -439,6 +439,12 @@ window.addEventListener('scroll', loadSubset); + window.addEventListener('keydown', function (event) { + if (event.key === "Escape" ) { + closeModal(); + } + }); + window.onload = async () => { iso = new Isotope( '.book__list', { itemSelector: '.book', diff --git a/test/server.cpp b/test/server.cpp index 99a480ef0..b813844ac 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -184,7 +184,7 @@ R"EXPECTEDRESULT( src="/ROOT/skin/jquery-ui/external/jquery/jquery.js?cache src: url("/ROOT/skin/fonts/Roboto.ttf?cacheid=84d10248") format("truetype"); - + )EXPECTEDRESULT" }, {