Skip to content

Commit

Permalink
chore: add IME support for SearchBox (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoam committed Apr 19, 2023
1 parent 6130c59 commit ccd5cca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mean-spies-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/site-kit": patch
---

chore: add IME support for SearchBox
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
<input
autofocus
on:keydown={(e) => {
if (e.key === 'Enter') {
if (e.key === 'Enter' && !e.isComposing) {
/** @type {HTMLElement | undefined} */ (
modal.querySelector('a[data-has-node]')
)?.click();
Expand Down

0 comments on commit ccd5cca

Please sign in to comment.