10 This fixes IME support in chrome for desktop/mobile, and Safari.
Some more details on this implementation:
1) Reverts a performance improvement to return the modified editor on shouldPreventDefault for keydown and beforeinput. Unfortunately, it sometimes can have a stale editor state, since the state gets passed in the view, not in the update method
2) Adds a custom editorcompositionend event which gets fired after the original to fix issues in some browsers where the final keydown and input event are fired after the composition event.
3) For android, makes sure that compositionend gets called eventually, since sometimes Android will never fire it.
10 This fixes IME support in chrome for desktop/mobile, and Safari.
Some more details on this implementation: 1) Reverts a performance improvement to return the modified editor on shouldPreventDefault for keydown and beforeinput. Unfortunately, it sometimes can have a stale editor state, since the state gets passed in the view, not in the update method 2) Adds a custom
editorcompositionend
event which gets fired after the original to fix issues in some browsers where the final keydown and input event are fired after the composition event. 3) For android, makes sure thatcompositionend
gets called eventually, since sometimes Android will never fire it.