Skip to content
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

Fix backspace in IME composition on iOS Safari #40546

Merged

Conversation

Yukaii
Copy link
Contributor

@Yukaii Yukaii commented Dec 20, 2017

This should fix microsoft/monaco-editor#529

Current Behavior

ezgif-3-ce5762380b

Hitting backspace deletes text.

After

ezgif-3-0401591e24

IME handles correctly.

@rebornix rebornix self-assigned this Jan 19, 2018
@rebornix rebornix added this to the February 2018 milestone Jan 30, 2018
@bpasero bpasero modified the milestones: February 2018, March 2018 Mar 8, 2018
@bpasero bpasero modified the milestones: March 2018, April 2018 Apr 6, 2018
@alexdima alexdima removed this from the April 2018 milestone Apr 27, 2018
@alexdima alexdima added the editor-input-IME Editor input of characters not on keyboard label Apr 27, 2018
@alexdima
Copy link
Member

@rebornix Can you please verify this one. I am afraid to change my phone to Chinese because I will not be able to go back :-).

@alexdima alexdima removed their assignment Apr 27, 2018
@rebornix
Copy link
Member

@Yukaii thanks for your contribution! I'm not 100% confident about bubbling up the backspace event always when isDoingComposition is true (as isDoingComposition can be wrong when editor losing focus, and the IME happens to be CJK).

I'll do a full round of IME test before I merge https://github.com/Microsoft/vscode/wiki/IME-Test , if you are interested you can help with that as well.

@Yukaii
Copy link
Contributor Author

Yukaii commented Apr 29, 2018

@rebornix Thanks for looking into this. I can help with macOS IME test. I use macOS Sierra.

@rebornix
Copy link
Member

rebornix commented May 2, 2018

@Yukaii I think the code works fine, thanks for your help on this!

@rebornix rebornix merged commit eedc1f5 into microsoft:master May 2, 2018
@Yukaii Yukaii deleted the fix-ios-backspace-ime-composition branch May 3, 2018 00:58
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-input-IME Editor input of characters not on keyboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backspace key not working on iOS Safari 10.x
4 participants