mirror of
https://github.com/imputnet/cobalt.git
synced 2025-02-09 15:08:17 +00:00
web/Omnibox: handle enter key press
This commit is contained in:
parent
05044922d5
commit
bd2bdf326f
|
@ -57,6 +57,10 @@
|
||||||
linkInput.focus();
|
linkInput.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.key === "Enter" && validLink(link)) {
|
||||||
|
downloadButton.download(link);
|
||||||
|
}
|
||||||
|
|
||||||
if (['Escape', 'Clear'].includes(e.key)) {
|
if (['Escape', 'Clear'].includes(e.key)) {
|
||||||
link = "";
|
link = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue