File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,6 @@ summary .group-name {
632
632
position : relative;
633
633
display : flex;
634
634
padding : 4px 3px 4px 6px ;
635
- outline : none;
636
635
}
637
636
638
637
.wiki-search-result : hover {
Original file line number Diff line number Diff line change @@ -326,11 +326,11 @@ export function addPageListeners() {
326
326
} ) ;
327
327
328
328
info . searchInput . addEventListener ( 'keydown' , domEvent => {
329
- if ( domEvent . key === 'ArrowDown' && info . searchInput . value . length === info . searchInput . selectionStart ) {
329
+ if ( domEvent . key === 'ArrowDown' ) {
330
330
const elem = info . results ?. firstChild ;
331
331
if ( elem && ! elem . classList . contains ( 'wiki-search-no-results' ) ) {
332
332
domEvent . preventDefault ( ) ;
333
- elem . focus ( ) ;
333
+ elem . focus ( { focusVisible : true } ) ;
334
334
}
335
335
}
336
336
} ) ;
@@ -786,13 +786,13 @@ function generateSidebarSearchResultTemplate(slots, info) {
786
786
const elem = link . nextElementSibling ;
787
787
if ( elem ) {
788
788
domEvent . preventDefault ( ) ;
789
- elem . focus ( ) ;
789
+ elem . focus ( { focusVisible : true } ) ;
790
790
}
791
791
} else if ( domEvent . key === 'ArrowUp' ) {
792
792
domEvent . preventDefault ( ) ;
793
793
const elem = link . previousElementSibling ;
794
794
if ( elem ) {
795
- elem . focus ( ) ;
795
+ elem . focus ( { focusVisible : true } ) ;
796
796
} else {
797
797
info . searchInput . focus ( ) ;
798
798
}
You can’t perform that action at this time.
0 commit comments