dillon1000/react
Commit
Browse files Combine BeforeInput and Composition event plugins
In order to improve support for Chinese and Japanese IME input in Internet Explorer, use a fallback composition state to determine inserted text. IE composition events are mostly okay, except for certain punctuation characters that are ignored. Using the fallback, we can detect these characters. The fallback is also useful for emitting `beforeInput` events, so it makes sense to simply combine these plugins. This change also incorporates a recent change to the Google Input Tools browser extension that exposes a `data` field via the `detail` object on the custom composition events it emits.
Changed paths6 files
First-parent comparisonsrc/browser/eventPlugins/BeforeInputEventPlugin.js ModifiedD src/browser/eventPlugins/CompositionEventPlugin.js DeletedM src/browser/eventPlugins/DefaultEventPluginOrder.js ModifiedA src/browser/eventPlugins/FallbackCompositionState.js AddedA src/browser/eventPlugins/__tests__/FallbackCompositionState-test.js AddedM src/browser/ui/ReactDefaultInjection.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…