File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function setup_search_box() {
19
19
to be trying to scroll the page with keyboard, rather than typing
20
20
a search query
21
21
*/
22
- $ ( '#query' ) . focus ( ) . keydown ( function ( e ) {
22
+ $ ( '#query' ) . keydown ( function ( e ) {
23
23
var el = $ ( this ) ;
24
24
if ( e . which == 32 && el . val ( ) . length ) { return true ; }
25
25
if ( e . which == 32 || e . which == 34 || e . which == 40 ) { el . blur ( ) ; }
Original file line number Diff line number Diff line change 4
4
> Perl 6 Documentation</ a
5
5
>
6
6
< div id ="search " class ="ui-widget ">
7
- < div class ="green "> < input placeholder ="Search " id ="query " title ="Enter Perl 6 document to search for "> </ div >
7
+ < div class ="green "> < input placeholder ="Search " autofocus id ="query " title ="Enter Perl 6 document to search for "> </ div >
8
8
</ div >
9
9
< div class ="menu ">
10
10
MENU
You can’t perform that action at this time.
0 commit comments