docsearch
docsearch copied to clipboard
When selecting characters in Chinese and Japanese IME, the search function may be triggered incorrectly.
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
- Go to
DocSearchModal > input - Keypress on
ㄋ一ˇ enter(key mapping to su3 enter) - Expected to be a character selection, but turned into link selection.
Expected behavior
Expected to be a character selection on first enter keypress.
For example, in chrome url input
In github text area
Environment
- OS: [e.g. macOS]
- Browser: [e.g. Chrome]
- DocSearch version: Algolia DocSearch for docusaurus
Any suggestions?
@PhantasWeng sorry for the delayed response, I'm trying to clean up our issues now. Is this still an open topic? I would expect this to be a general issue with the Autocomplete UI and not limited to Docusaurus. May I ask you test the behavior on other DocSearch (Autocomplete UI) sites? See here for some featured partners: https://docsearch.algolia.com/. For example, neither Bootstrap nor Material use Docusaurus.
@randombeeper Yes, this issue still exists.
I encounter the same problem in different environments, which is why I am raising this issue here instead of on Docusaurus.