Skip to content

Commit

Permalink
responsive enter
Browse files Browse the repository at this point in the history
  • Loading branch information
user04f8 committed Oct 14, 2024
1 parent 8671bb8 commit 1f8abf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lsa-search-engine/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}}
/>

<button
Expand Down

0 comments on commit 1f8abf5

Please sign in to comment.