This commit is contained in:
wukko
2022-08-16 13:14:19 +06:00
parent a5e081e2bf
commit e11ee6fb62
24 changed files with 106 additions and 115 deletions

View File

@@ -51,7 +51,7 @@ function changeDownloadButton(action, text) {
break;
}
}
document.addEventListener("keydown", function (event) {
document.addEventListener("keydown", (event) => {
if (event.key == "Tab") {
eid("download-button").value = '>>'
eid("download-button").style.padding = '0 1rem'
@@ -257,7 +257,7 @@ async function download(url) {
}
}).catch((error) => internetError());
}
window.onload = function () {
window.onload = () => {
loadSettings();
detectColorScheme();
changeDownloadButton(0, '>>');
@@ -274,6 +274,6 @@ window.onload = function () {
eid("url-input-area").addEventListener("keyup", (event) => {
if (event.key === 'Enter') eid("download-button").click();
})
document.onkeydown = function(event) {
document.onkeydown = (event) => {
if (event.key === 'Escape') hideAllPopups();
};