@@ -2908,10 +2908,14 @@ function defocusSearchBar() {
29082908 [ "⏎" , "Go to active search result" ] ,
29092909 [ "+" , "Expand all sections" ] ,
29102910 [ "-" , "Collapse all sections" ] ,
2911- ] . map ( x => "<dt>" +
2912- x [ 0 ] . split ( " " )
2913- . map ( ( y , index ) => ( index & 1 ) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " " )
2914- . join ( "" ) + "</dt><dd>" + x [ 1 ] + "</dd>" ) . join ( "" ) ;
2911+ ] . map ( function ( x ) {
2912+ return "<dt>" +
2913+ x [ 0 ] . split ( " " )
2914+ . map ( function ( y , index ) {
2915+ return ( index & 1 ) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " " ;
2916+ } )
2917+ . join ( "" ) + "</dt><dd>" + x [ 1 ] + "</dd>" ;
2918+ } ) . join ( "" ) ;
29152919 var div_shortcuts = document . createElement ( "div" ) ;
29162920 addClass ( div_shortcuts , "shortcuts" ) ;
29172921 div_shortcuts . innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>" ;
@@ -2929,7 +2933,9 @@ function defocusSearchBar() {
29292933 "You can look for items with an exact name by putting double quotes around \
29302934 your request: <code>\"string\"</code>" ,
29312935 "Look for items inside another one by searching for a path: <code>vec::Vec</code>" ,
2932- ] . map ( x => "<p>" + x + "</p>" ) . join ( "" ) ;
2936+ ] . map ( function ( x ) {
2937+ return "<p>" + x + "</p>" ;
2938+ } ) . join ( "" ) ;
29332939 var div_infos = document . createElement ( "div" ) ;
29342940 addClass ( div_infos , "infos" ) ;
29352941 div_infos . innerHTML = "<h2>Search Tricks</h2>" + infos ;
0 commit comments