From 424bac2ab5409ff36e83a86f8b835c6cbd182105 Mon Sep 17 00:00:00 2001 From: Loudbook Date: Mon, 7 Oct 2024 23:03:40 -0400 Subject: [PATCH] Enter --- src/routes/+page.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 3a53b7e..e55d93e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -8,7 +8,7 @@ let button: HTMLButtonElement; let usernameInput: HTMLInputElement; - async function requestReport(_: MouseEvent) { + async function requestReport() { button.innerHTML = "Working..."; setTimeout(async () => { @@ -40,7 +40,13 @@ - + { + if (event.key === "Enter") { + requestReport(); + } + } + } bind:this={usernameInput}>