diff --git a/src/ui/popup.js b/src/ui/popup.js index e7e0a7d..6b0b8a0 100644 --- a/src/ui/popup.js +++ b/src/ui/popup.js @@ -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();