Typing backspace terminates the composition of IME for Chinese/Japanese
#422 opened on Aug 15, 2015
Description
When I was typing Chinese and Japanese in scribe, I found that code in patches/events terminates the IME's composition in Chrome.
Typing CJK(Chinese/Japanese/Korean) characters need the help of IME, which buffers the user's keystrokes until a character or word has been made.The first line in the following example shows how IME works:

In the above example, I am trying to type sekai in Japanese. If I happen to type segai (in second line), I will press backspace to leave se there, then type kai to correct myself. Problem comes. The time I pressed backspace, the buffered keystrokes were lost(though they might still visually remain on the screen), leaving me no chance to continue from the last se I've already typed.
せ(se) か(ka) い(i)
せ(se) が(ga) い(i)
During the composition, keyup/keydown are fired in Chrome(reference: https://w3c.github.io/uievents/#events-composition-event-key-events). I guess placeMarkers and selectMarkers, which mutate the DOM, make the browser discard the buffers. By commenting these two lines in patches/events, composition is not influenced.
Removing these two lines may not be good solution. I'm thinking of a isComposing polyfill. If is composing, then we do not need to check whether the user is pressing backspace or not.
After:

Now in the second line, after deleting gai, I could type kai right after se.