-
Notifications
You must be signed in to change notification settings - Fork 833
Description
Description:
Trouble:
Currently, the homepage search bar does not handle Chinese input properly. When typing Chinese queries using pinyin, repeated or garbled characters appear (e.g., typing "woshi" may result in "woossshhhiiii"), making the search experience unfriendly for Chinese users.
Possible problem
The input field may not correctly handle multi-byte Unicode characters or the compositio
The search bar might be listening only for raw keypress events rather than proper compositionstart / compositionupdate / compositionende
There may be encoding or buffer issues causing repeated chara
Maybe solution
Properly handle IME composition events in the
Use compositionstart, compositionupdate, and compositionend to track ongoing pinyin input.
Only commit input after composition ends.
Ensure the input supports Unicode and multi-byte characters correctly.
Thank you!