File tree 1 file changed +10
-0
lines changed
src/librustdoc/html/static
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,15 @@ function defocusSearchBar() {
415
415
displayHelp ( true , ev ) ;
416
416
break ;
417
417
418
+ case "t" :
419
+ case "T" :
420
+ displayHelp ( false , ev ) ;
421
+ ev . preventDefault ( ) ;
422
+ var themePicker = getThemePickerElement ( ) ;
423
+ themePicker . click ( ) ;
424
+ themePicker . focus ( ) ;
425
+ break ;
426
+
418
427
default :
419
428
var themePicker = getThemePickerElement ( ) ;
420
429
if ( themePicker . parentNode . contains ( ev . target ) ) {
@@ -2852,6 +2861,7 @@ function defocusSearchBar() {
2852
2861
var shortcuts = [
2853
2862
[ "?" , "Show this help dialog" ] ,
2854
2863
[ "S" , "Focus the search field" ] ,
2864
+ [ "T" , "Focus the theme picker menu" ] ,
2855
2865
[ "↑" , "Move up in search results" ] ,
2856
2866
[ "↓" , "Move down in search results" ] ,
2857
2867
[ "↹" , "Switch tab" ] ,
You can’t perform that action at this time.
0 commit comments