web/Omnibox: handle enter key press
This commit is contained in:
parent
05044922d5
commit
bd2bdf326f
1 changed files with 4 additions and 0 deletions
|
@ -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