We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef441d commit d496d87Copy full SHA for d496d87
src/static/js/client/sidebar-search.js
@@ -347,10 +347,13 @@ export function addPageListeners() {
347
info.searchInput.addEventListener('drop', handleDroppedIntoSearchInput);
348
349
info.searchInput.addEventListener('keydown', domEvent => {
350
+ if (domEvent.key === 'ArrowUp' || domEvent.key === 'ArrowDown') {
351
+ domEvent.preventDefault();
352
+ }
353
+
354
if (domEvent.key === 'ArrowDown') {
355
const elem = info.results.firstChild;
356
if (elem?.classList.contains('wiki-search-result')) {
- domEvent.preventDefault();
357
elem.focus({focusVisible: true});
358
}
359
0 commit comments