dillon1000/react

Commit

Normalize and polyfill KeyboardEvent further, also MouseEvent+TouchEvent

KeyboardEvent now normalizes "charCode", "keyCode", "which" across all browsers
KeyboardEvent has partial "key"-support for KeyDown/KeyUp and full "key"-support for KeyPress.
KeyboardEvent, MouseEvent and TouchEvent now has "getModifierState", polyfill when not implemented.
Browse files
Changed paths7 files
First-parent comparison
M docs/docs/ref-05-events.md ModifiedM src/browser/eventPlugins/SimpleEventPlugin.js ModifiedM src/browser/syntheticEvents/SyntheticKeyboardEvent.js ModifiedM src/browser/syntheticEvents/SyntheticMouseEvent.js ModifiedM src/browser/syntheticEvents/SyntheticTouchEvent.js ModifiedM src/browser/ui/dom/getEventKey.js ModifiedA src/browser/ui/dom/getEventModifierState.js Added
Patch

Files changed

Rendering syntax-highlighted changes…