-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 entering a Chinese punctuation, it acts like keeping hitting the key #3706
Comments
For me, I have to type twice to input one Chinese puncutation, like period(。), I'm also using terminal version 0.7.3291.0 It reminds me this issue #2191 , one Chinese character rendered as two small charactors. |
I am in the same situation as @etern 's instead of OP's |
I have encountered the same bug @wrvsrx wt version: 0.7.3382.0 |
Recently, I test it on another PC whose windows build number is 10.0.18363.535, and it behave like what #3745 describes. Comparing this to windows terminal's behavior mentioned above on my PC with windows build number 10.0.19030.1, I think it might be related to the windows version. |
@wrvsrx And my windows version is: 10.0.19037.1 |
The first argument to `NotifyTextChanged` incorrectly was `[0,0]` instead of the length of the text to be removed from the `CoreTextEditContext`. Best source of documentation for `NotifyTextChanged`: https://docs.microsoft.com/en-us/windows/uwp/design/input/custom-text-input#overriding-text-updates FYI @DHowett-MSFT (just in case): C++/WinRT uses `winrt::param::hstring` for string parameters which intelligently borrows strings. As such you can simply pass a `std::wstring` to most WinRT methods without the need of having to allocate an intermediate `hstring`. 🙂 ## Validation Steps Performed I followed the reproduction instructions of #3706 and #3745 and ensured the issue doesn't happen anymore. Closes #3645 Closes #3706 Closes #3745
🎉This issue was addressed in #4140, which has now been successfully released as Handy links: |
Environment
Steps to reproduce
Hit the key "," (or other punctuation) in windows terminal with Chinese input method
Expected behavior
Output a "," (I delete the extra "," in the following picture manually)
Actual behavior
keeps outputting "," just like I keep hitting the ","
Some other information
The text was updated successfully, but these errors were encountered: