From 1f8abf54ad17d798529e7b7e9f333dc02c37b033 Mon Sep 17 00:00:00 2001 From: Nathan Clark Date: Sun, 13 Oct 2024 23:50:32 -0400 Subject: [PATCH] responsive enter --- lsa-search-engine/src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lsa-search-engine/src/App.tsx b/lsa-search-engine/src/App.tsx index 60a874e..60eeb25 100644 --- a/lsa-search-engine/src/App.tsx +++ b/lsa-search-engine/src/App.tsx @@ -200,6 +200,11 @@ function App() { placeholder="Type your query here..." value={query} onChange={(e) => setQuery(e.target.value)} + onKeyDown={(e) => { + if (e.key === 'Enter') { + handleSearch(); + } + }} />