We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f802c5 commit 42f7864Copy full SHA for 42f7864
html/js/main.js
@@ -21,7 +21,9 @@ function setup_search_box() {
21
*/
22
$('#query').keydown( function(e){
23
var el = $(this);
24
- if ( e.which == 32 && el.val().length ) { return true; }
+ if ( el.val().length && ( e.which == 32 || e.which == 40) ) {
25
+ return true;
26
+ }
27
if ( e.which == 32 || e.which == 34 || e.which == 40 ) { el.blur() ; }
28
// key codes: 32: space; 34: pagedown; 40: down arrow
29
});
0 commit comments