diff --git a/src/js/zmain.js b/src/js/zmain.js index 61b2788d4..455e0971b 100644 --- a/src/js/zmain.js +++ b/src/js/zmain.js @@ -64,9 +64,10 @@ break; } } + //use esc key to close search panel: typo fixed if($('.search-form').hasClass('active')){ switch(e.key) { - case "Esc": + case "Escape": $('.icon-remove-sign').trigger('click'); break; }