Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Judging the iScomposing property when searchbox input #1043

Open
mantou132 opened this issue Sep 4, 2021 · 3 comments · Fixed by algolia/autocomplete#1226 or algolia/autocomplete#1238

Comments

@mantou132
Copy link

mantou132 commented Sep 4, 2021

Describe the problem

When you haven't selected it in the input method, you should not request a request.

Describe the solution

Use https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/isComposing

@Haroenv
Copy link
Contributor

Haroenv commented Sep 6, 2021

Do you have a suggestion where this would be used in the code base?

@mantou132
Copy link
Author

see issue: #1304

Haroenv added a commit to algolia/autocomplete that referenced this issue Feb 21, 2022
"composing" is used on Japanese (and other CJK scripts) when typing on a qwerty or similar keyboard, showing something akin to autocomplete on iOS. You confirm a word by pressing enter, which shouldn't commit to a search.

Still needs to be tested thoroughly, as it's possible we need to check isComposing earlier to prevent searching for the intermediate romanji characters.

Fixes algolia/docsearch#1304
Fixes algolia/docsearch#1043
@dhayab
Copy link
Member

dhayab commented Jan 30, 2024

Reopening this issue to let the docsearch team handle updating autocomplete and forwarding ignoreCompositionEvents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants