web/Omnibox: handle enter key press

This commit is contained in:
wukko
2024-07-08 19:29:30 +06:00
parent 05044922d5
commit bd2bdf326f

View File

@@ -57,6 +57,10 @@
linkInput.focus();
}
if (e.key === "Enter" && validLink(link)) {
downloadButton.download(link);
}
if (['Escape', 'Clear'].includes(e.key)) {
link = "";
}