From e8efe6507c4a8aa19fdc73228bf2747d79599d07 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 21 Dec 2023 14:26:06 -0800
Subject: feat(discussions): submit on enter

---
 src/lib/Tools/EpisodeDiscussionCollector.svelte | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/lib/Tools/EpisodeDiscussionCollector.svelte')

diff --git a/src/lib/Tools/EpisodeDiscussionCollector.svelte b/src/lib/Tools/EpisodeDiscussionCollector.svelte
index 2559afb2..8aa9afee 100644
--- a/src/lib/Tools/EpisodeDiscussionCollector.svelte
+++ b/src/lib/Tools/EpisodeDiscussionCollector.svelte
@@ -10,7 +10,14 @@
 </script>
 
 <p>
-	<input type="text" placeholder="Username" bind:value={searchInput} />
+	<input
+		type="text"
+		placeholder="Username"
+		bind:value={searchInput}
+		on:keypress={(e) => {
+			e.key === 'Enter' && (searchInputFinal = searchInput);
+		}}
+	/>
 	<a href={`#`} on:click={() => (searchInputFinal = searchInput)}>Search</a>
 </p>
 
-- 
cgit v1.2.3

