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

When selecting characters in Chinese and Japanese IME, the search function may be triggered incorrectly. #2111

Open
PhantasWeng opened this issue Oct 31, 2023 · 1 comment

Comments

@PhantasWeng
Copy link

PhantasWeng commented Oct 31, 2023

Description

In Chinese and Japanese input methods, character selection is done using pinyin and enter key.

For example: to input "你" (ㄋ一ˇ), you would type ㄋ + ㄧ + ˇ + enter to select the character.
Currently, pressing enter triggers an incorrect input.

This results in submitting ㄋ一ˇ instead of .

Steps to reproduce

  1. Go to DocSearchModal > input
  2. Keypress on ㄋ一ˇ enter (key mapping to su3 enter)
  3. Expected to be a character selection, but turned into link selection.

Google Chrome 個人資料  OwlPay Documentation 2023-10-31 at 13 22 48

Expected behavior

Expected to be a character selection on first enter keypress.

For example, in chrome url input
Google Chrome When selecting characters in Chinese and Japanese IME the search function may be triggered incorrectly  · Issue #2111 · algoliadocsearch 2023-10-31 at 13 30 11

In github text area
Google Chrome When selecting characters in Chinese and Japanese IME the search function may be triggered incorrectly  · Issue #2111 · algoliadocsearch 2023-10-31 at 13 31 12

Environment

  • OS: [e.g. macOS]
  • Browser: [e.g. Chrome]
  • DocSearch version: Algolia DocSearch for docusaurus
@PhantasWeng
Copy link
Author

Any suggestions?

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

No branches or pull requests

1 participant