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 @@ -109,6 +109,7 @@ $(document).ready(function() {
109109 debug : false ,
110110 } ) ;
111111 search . autocomplete . on ( 'autocomplete:updated' , event => {
112+ $ ( '.ds-cursor' ) . removeClass ( 'ds-cursor' ) ;
112113 const searchedText = $ ( '#search_input' ) [ 0 ] . value . trim ( ) ;
113114 const separatorText = '›' ;
114115 const separatorClass = 'aa-suggestion-title-separator' ;
@@ -135,8 +136,9 @@ $(document).ready(function() {
135136 } ) ;
136137
137138 $ ( document ) . on ( 'keydown keypress' , 'form.md-search__form' , function ( event ) {
138- if ( event . keyCode == 13 ) {
139+ if ( - 1 != $ . inArray ( event . key , [ 'Enter' , 'ArrowDown' , 'ArrowUp' ] ) ) {
139140 event . preventDefault ( ) ;
141+ $ ( '.ds-cursor' ) . removeClass ( 'ds-cursor' ) ;
140142
141143 return false ;
142144 }
You can’t perform that action at this time.
0 commit comments