Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Backspace can not erase the last one character during Chinese/Japanese IME conversion (macOS) #24981
The same issue as electron/electron#9173
referenced this issue
Apr 19, 2017
@bpasero when there is a webview, the composition state is not updated at all. Take below as example
This problem only occurs when you only have one character/phonetic radical left. For IME using phonetic composer, like Simplified Chinese and Japanese Hiragana, we can detect whether there is only one single phonetic radical left. However for IME using radical composer, like Traditional Chinese and Korean Hangul, they are behaving differently. Traditional Chinese has this issue as well but Korean Hangul doesn't. Even though we might be possible to hack it around by checking Locale/IME but it's too hacky.
The events emitted by browser align with the behavior of input box. I can't reproduce this issue with latest Chromium Version 57.0.2987.133 (64-bit).
I tried to get an idea of how bad it is by writing a fresh new blog post in Chinese, thinking, writing and tweaking the content. Within 30 minutes, I wrote 900 characters and ran into this issue 7 times. Current behavior is annoying to me, it's just weird. So I'll say it's not a blocker.
Besides, once you open a webview, you'll have this issue always. It means you open Markdown Preview, and then close it, you still have this backspace issue in editor and anywhere else. The only way to get rid of it is restarting VS Code.
Looks like this is a Chrome issue (as reported by Kevin here: https://bugs.chromium.org/p/chromium/issues/detail?id=714771) which means we will not get a fix until Chrome has fixed this or provided a workaround.
@rebornix given that, do you think we can add a hack to make this work or is there nothing we can do from our end?