File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ $(document).ready(function() {
123123 let link = $ ( '.ds-dropdown-menu a.search-page-link' ) ;
124124 if ( ! link . length ) {
125125 $ ( '.ds-dropdown-menu' ) . append ( `<div class="search-page-link-wrapper">
126- <a class="search-page-link" href="">See all results</a>
126+ <a class="search-page-link" href="">See more results</a>
127127 </div>` ) ;
128128 link = $ ( '.ds-dropdown-menu a.search-page-link' ) ;
129129 }
@@ -144,6 +144,7 @@ $(document).ready(function() {
144144 debug : false ,
145145 } ) ;
146146 search . autocomplete . on ( 'autocomplete:updated' , event => {
147+ $ ( '.ds-cursor' ) . removeClass ( 'ds-cursor' ) ;
147148 const searchedText = $ ( '#search_input' ) [ 0 ] . value . trim ( ) ;
148149 const separatorText = '›' ;
149150 const separatorClass = 'aa-suggestion-title-separator' ;
@@ -170,8 +171,9 @@ $(document).ready(function() {
170171 } ) ;
171172
172173 $ ( document ) . on ( 'keydown keypress' , 'form.md-search__form' , function ( event ) {
173- if ( event . keyCode == 13 ) {
174+ if ( - 1 != $ . inArray ( event . key , [ 'Enter' , 'ArrowDown' , 'ArrowUp' ] ) ) {
174175 event . preventDefault ( ) ;
176+ $ ( '.ds-cursor' ) . removeClass ( 'ds-cursor' ) ;
175177
176178 return false ;
177179 }
You can’t perform that action at this time.
0 commit comments