@samitouri / QOS-React / commits / e217f2f1ac

Updated comment for getEventModifierState (#13918)

Patrick committed Oct 27, 2018 at 09:52 UTC e217f2f1ac31e0d2c4e29c9a7b92399427b2c3a8
1 file changed +3 -3
packages/react-dom/src/events/getEventModifierState.js
+3 -3
@@ -21,9 +21,9 @@ const modifierKeyToProp = {
21 Shift: 'shiftKey',
22 };
23
24 -// IE8 does not implement getModifierState so we simply map it to the only
25 -// modifier keys exposed by the event itself, does not support Lock-keys.
26 -// Currently, all major browsers except Chrome seems to support Lock-keys.
24 +// Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
25 +// getModifierState. If getModifierState is not supported, we map it to a set of
26 +// modifier keys exposed by the event. In this case, Lock-keys are not supported.
27 function modifierStateGetter(keyArg: string): boolean {
28 const syntheticEvent = this;
29 const nativeEvent = syntheticEvent.nativeEvent;