From 66b61769c4671a84e858b8db9b69cf22ac025b03 Mon Sep 17 00:00:00 2001 From: Sawa Date: Wed, 2 Aug 2017 04:33:46 +0800 Subject: [PATCH] fix(/src/js/zmain.js): Typo 'Escape' key should be used to close search panel, 'Esc' doesn't work. Minus mistake. --- src/js/zmain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }