Skip to content

Commit 8af68dc

Browse files
committed
1 parent 7771cc7 commit 8af68dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/js/custom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)