File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1396,6 +1396,7 @@ function defocusSearchBar() {
1396
1396
1397
1397
addClass ( actives [ currentTab ] [ 0 ] . previousElementSibling , "highlighted" ) ;
1398
1398
removeClass ( actives [ currentTab ] [ 0 ] , "highlighted" ) ;
1399
+ e . preventDefault ( ) ;
1399
1400
} else if ( e . which === 40 ) { // down
1400
1401
if ( ! actives [ currentTab ] . length ) {
1401
1402
var results = document . getElementById ( "results" ) . childNodes ;
@@ -1409,6 +1410,7 @@ function defocusSearchBar() {
1409
1410
addClass ( actives [ currentTab ] [ 0 ] . nextElementSibling , "highlighted" ) ;
1410
1411
removeClass ( actives [ currentTab ] [ 0 ] , "highlighted" ) ;
1411
1412
}
1413
+ e . preventDefault ( ) ;
1412
1414
} else if ( e . which === 13 ) { // return
1413
1415
if ( actives [ currentTab ] . length ) {
1414
1416
document . location . href =
You can’t perform that action at this time.
0 commit comments