File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,8 @@ function loadCss(cssFileName) {
419
419
return ;
420
420
}
421
421
422
- if ( document . activeElement . tagName === "INPUT" ) {
422
+ if ( document . activeElement . tagName === "INPUT" &&
423
+ document . activeElement . type !== "checkbox" ) {
423
424
switch ( getVirtualKey ( ev ) ) {
424
425
case "Escape" :
425
426
handleEscape ( ev ) ;
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ click: ".setting-line:last-child .toggle .label"
122
122
assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
123
123
124
124
// Make sure that "Disable keyboard shortcuts" actually took effect.
125
+ // The help popover won't exist yet.
125
126
press-key: "?"
126
127
wait-for-css: ("#settings-menu .popover", {"display": "block"})
127
128
You can’t perform that action at this time.
0 commit comments