Skip to content

Commit

Permalink
fix(/src/js/zmain.js): Typo
Browse files Browse the repository at this point in the history
'Escape' key should be used to close search panel, 'Esc' doesn't work. Minus mistake.
  • Loading branch information
SAW4 authored Aug 1, 2017
1 parent c5bb386 commit 66b6176
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/zmain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 66b6176

Please sign in to comment.