diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 0c89dec21..7257197c7 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -353,6 +353,7 @@ const popup = (type, action, text) => { eid("popup-backdrop").classList.toggle("visible"); eid(`popup-${type}`).classList.toggle("visible"); eid(`popup-${type}`).focus(); + } const changeSwitcher = (switcher, state) => { @@ -650,6 +651,7 @@ window.onload = () => { changeDownloadButton("hidden"); eid("url-input-area").value = ""; + if (isIOS) { sSet("downloadPopup", "true"); @@ -670,6 +672,7 @@ window.onload = () => { if (isIOS) { document.addEventListener('touchstart', () => {}, true); } + } eid("url-input-area").addEventListener("keydown", () => { @@ -704,5 +707,6 @@ document.onkeydown = (e) => { } else { if (e.key === "Escape") hideAllPopups(); + if (e.key === "Enter") popup('error', 0); eid("url-input-area").focus(); //Close the popup, then focus on input area again. } }