{"version":3,"sources":["node_modules\\react-dom\\lib\\getEventModifierState.js"],"names":["modifierKeyToProp","Alt","Control","Meta","Shift","modifierStateGetter","keyArg","syntheticEvent","nativeEvent","getModifierState","keyProp","getEventModifierState","module","exports"],"mappings":";;;;;;;;;;AAUA;;;;;;;AAOA,GAAIA,mBAAoB;AACtBC,IAAK,QADiB;AAEtBC,QAAS,SAFa;AAGtBC,KAAM,SAHgB;AAItBC,MAAO,UAJe,CAAxB;;;;;;AAUA,QAASC,oBAAT,CAA6BC,MAA7B,CAAqC;AACnC,GAAIC,gBAAiB,IAArB;AACA,GAAIC,aAAcD,eAAeC,WAAjC;AACA,GAAIA,YAAYC,gBAAhB,CAAkC;AAChC,MAAOD,aAAYC,gBAAZ,CAA6BH,MAA7B,CAAP;AACD;AACD,GAAII,SAAUV,kBAAkBM,MAAlB,CAAd;AACA,MAAOI,SAAU,CAAC,CAACF,YAAYE,OAAZ,CAAZ,CAAmC,KAA1C;AACD;;AAED,QAASC,sBAAT,CAA+BH,WAA/B,CAA4C;AAC1C,MAAOH,oBAAP;AACD;;AAEDO,OAAOC,OAAP,CAAiBF,qBAAjB","file":"getEventModifierState.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\n/**\n * Translation from modifier key to the associated property in the event.\n * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers\n */\n\nvar modifierKeyToProp = {\n  Alt: 'altKey',\n  Control: 'ctrlKey',\n  Meta: 'metaKey',\n  Shift: 'shiftKey'\n};\n\n// IE8 does not implement getModifierState so we simply map it to the only\n// modifier keys exposed by the event itself, does not support Lock-keys.\n// Currently, all major browsers except Chrome seems to support Lock-keys.\nfunction modifierStateGetter(keyArg) {\n  var syntheticEvent = this;\n  var nativeEvent = syntheticEvent.nativeEvent;\n  if (nativeEvent.getModifierState) {\n    return nativeEvent.getModifierState(keyArg);\n  }\n  var keyProp = modifierKeyToProp[keyArg];\n  return keyProp ? !!nativeEvent[keyProp] : false;\n}\n\nfunction getEventModifierState(nativeEvent) {\n  return modifierStateGetter;\n}\n\nmodule.exports = getEventModifierState;"]}