We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb8a738 commit f5f42a8Copy full SHA for f5f42a8
src/librustdoc/html/static/js/main.js
@@ -419,7 +419,8 @@ function loadCss(cssFileName) {
419
return;
420
}
421
422
- if (document.activeElement.tagName === "INPUT") {
+ if (document.activeElement.tagName === "INPUT" &&
423
+ document.activeElement.type !== "checkbox") {
424
switch (getVirtualKey(ev)) {
425
case "Escape":
426
handleEscape(ev);
src/test/rustdoc-gui/settings.goml
@@ -122,6 +122,7 @@ click: ".setting-line:last-child .toggle .label"
122
assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
123
124
// Make sure that "Disable keyboard shortcuts" actually took effect.
125
+// The help popover won't exist yet.
126
press-key: "?"
127
wait-for-css: ("#settings-menu .popover", {"display": "block"})
128
0 commit comments