Focus "OK" button on dialog-mode UI.

This commit is contained in:
hackademix 2020-06-06 22:03:11 +02:00
parent 54da001682
commit c3127b7a4d
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ addEventListener("unload", e => {
reload();
close();
}
buttons.appendChild(b);
buttons.appendChild(b).focus();
b = document.createElement("button");
b.textContent = _("Cancel");
b.onclick = () => close();