diff --git a/src/lib/Counter.svelte b/src/lib/Counter.svelte index c090a9c..dc2d4b7 100644 --- a/src/lib/Counter.svelte +++ b/src/lib/Counter.svelte @@ -76,7 +76,9 @@ function handleOnClick(evt) { } function handleOnKeydown(evt) { - console.log(evt) + if (evt.key === "Enter") { + document.getElementById("file-input").click(); + } } @@ -88,7 +90,8 @@ function handleOnKeydown(evt) {

Upload files

Max file size is {maxFileSize/1000}kb. Accepted formats: {acceptedFiles.join(",")}.

-
+ +