facebook/react — pull request #1637 by cpojer (2014-06-03 20:00:26+00:00)
Title: [React] Fix getEventModifierState in Chrome

Summary: When returning event.getModifierState directly it loses the context of the native event which results in an IllegalInvocation error in Chrome. This fixes it by always wrapping the function and by calling `getModifierState` on the native event.

Test Plan: In Chrome, I invoked `event.getModifierState('Alt')` in an onKeyDown event. It throws without the fix and works fine with the fix applied.