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