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:
parent
deb05758c8
commit
bb5fb53b30
2 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue