Closed Zym3Gen closed 4 years ago
Thanks for the report. Which operating system are you running?
Oh, sorry to mention: it's on macOS 10.15.7 (19H2). And the terminal is iTerm2 Build 3.3.12.
Thanks! Also, what are the exact input settings you're using?
I use Sogou Pinyin IME, a popular one among Chinese users.
The program I tested is an example you provided: https://github.com/charmbracelet/bubbletea/blob/master/examples/textinput/main.go
The same problem under Rime IME
There are also problems under the Mac native IME
Broken with Apple Default SC Pinyin IME as well:
After checking the code, the problem seems to be caused by the readInput method in key.go
. The utf8.DecodeRune method always decodes the first rune, causing subsequent data loss.
But I don’t understand the specific logic and how to fix it.
This is all very helpful; thank you for all the reports. It's really important to us that we sort this one out — I'll keep this thread updated with progress.
Hi everyone. Just a note that we're implementing a fix for this and expect to have it merged in the next few days. We'll continue to keep this thread updated with progress.
Hi everyone! Just a note that this is fixed in master
. We'll be doing releases on Bubble Tea and Bubbles tomorrow that will contain this fix.
Thanks again for flagging this, and let us know if you have anymore trouble with IME.
e.g. with the example textinput component:
while typing:
actually got: