rustdoc: fix "?" keyboard command when radio button is focused

This extends the special case with checkbox settings to also cover radios.
This commit is contained in:
Michael Howell 2023-01-18 11:52:31 -07:00
parent deb05758c8
commit bb5fb53b30
2 changed files with 12 additions and 1 deletions

View file

@ -390,7 +390,8 @@ function loadCss(cssUrl) {
}
if (document.activeElement.tagName === "INPUT" &&
document.activeElement.type !== "checkbox") {
document.activeElement.type !== "checkbox" &&
document.activeElement.type !== "radio") {
switch (getVirtualKey(ev)) {
case "Escape":
handleEscape(ev);