-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Backspace can not erase the last one character during Chinese/Japanese IME conversion (macOS) #24981
Comments
It's actually more severe as if there is any webview, we'll receive wrong composition events in editor as well. So if you are editing markdown files in Japanese with Preview open, you'll run into the same issue. cc @mattbierner |
@rebornix does this only reproduce in native input fields or also inside the editor? any clue for a workaround or fix? I fear this could block our electron update... |
I just confirmed that this also happens in the editor as long as there is a |
@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). |
This is not just Japanese, I can also reproduce this problem with Chinese IME. Once there is a webview, all viewlets are affected, including Editor and Integrated Terminal. cc @Tyriar |
Since I am not expecting a fix on our end, moving to backlog until we go for a more recent electron version. |
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? |
@bpasero as it's affecting native input/textarea and js events, I don't have an idea of how to hack it right now. |
As of now, the Chromium issue has been fixed. Is there any plan to bump it? I confirm it happens on Windows/Ubuntu. |
@rebornix since we updated to a more recent Electron version, I think this issue is resolved. At least a fix from Chrome was backported: electron/libchromiumcontent#300 |
Has the same issue on Windows with VSCode 1.15.1. |
@bpasero thanks. I no longer see this issue in latest Insider (1.16-insider), so this issue would disappear from our next Stable. |
Does this problem fix with 1.16.1? This issue still occurs with VSCode v1.16.1 on Windows 10 using Google Japanese IME. Video: https://youtu.be/Wq2LzSv4p1Q |
The same issue as electron/electron#9173
Reproduce steps:
The text was updated successfully, but these errors were encountered: