Fixed #10: Invisible header after closing search bar with ESC key

This commit is contained in:
squidfunk
2016-02-25 19:05:53 +01:00
parent 573b74881d
commit 3e508f45f2
6 changed files with 13 additions and 4 deletions

View File

@@ -373,6 +373,9 @@ document.addEventListener('DOMContentLoaded', function() {
window.addEventListener('keyup', function(e) {
var code = e.keyCode || e.which;
if (code == 27) {
query.blur();
/* Exit locked state */
document.body.classList.remove('toggle-search');
document.body.classList.remove('locked');
toggle.checked = false;