Skip to content

Commit bff04e0

Browse files
committed
Update spotlightsearch.js
1 parent 8f9d8fb commit bff04e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spotlightsearch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ searchInput.addEventListener('input', () => {
7575
searchInput.addEventListener('keydown', (e) => {
7676

7777
if (e.key === 'Enter') {
78+
7879
e.preventDefault();
80+
searchInput.blur();
81+
7982
}
8083

8184
})

0 commit comments

Comments
 (0)