mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 18:08:28 +00:00
web/Omnibox: handle enter key press
This commit is contained in:
parent
e1bf0fb6fa
commit
35a82fb917
@ -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 New Issue
Block a user