File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -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