{"version":3,"sources":["node_modules\\react-dom\\lib\\SyntheticKeyboardEvent.js"],"names":["SyntheticUIEvent","require","getEventCharCode","getEventKey","getEventModifierState","KeyboardEventInterface","key","location","ctrlKey","shiftKey","altKey","metaKey","repeat","locale","getModifierState","charCode","event","type","keyCode","which","SyntheticKeyboardEvent","dispatchConfig","dispatchMarker","nativeEvent","nativeEventTarget","call","augmentClass","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,kBAAmBC,QAAQ,oBAAR,CAAvB;;AAEA,GAAIC,kBAAmBD,QAAQ,oBAAR,CAAvB;AACA,GAAIE,aAAcF,QAAQ,eAAR,CAAlB;AACA,GAAIG,uBAAwBH,QAAQ,yBAAR,CAA5B;;;;;;AAMA,GAAII,wBAAyB;AAC3BC,IAAKH,WADsB;AAE3BI,SAAU,IAFiB;AAG3BC,QAAS,IAHkB;AAI3BC,SAAU,IAJiB;AAK3BC,OAAQ,IALmB;AAM3BC,QAAS,IANkB;AAO3BC,OAAQ,IAPmB;AAQ3BC,OAAQ,IARmB;AAS3BC,iBAAkBV,qBATS;;AAW3BW,SAAU,kBAAUC,KAAV,CAAiB;;;;;;AAMzB,GAAIA,MAAMC,IAAN,GAAe,UAAnB,CAA+B;AAC7B,MAAOf,kBAAiBc,KAAjB,CAAP;AACD;AACD,MAAO,EAAP;AACD,CArB0B;AAsB3BE,QAAS,iBAAUF,KAAV,CAAiB;;;;;;;;AAQxB,GAAIA,MAAMC,IAAN,GAAe,SAAf,EAA4BD,MAAMC,IAAN,GAAe,OAA/C,CAAwD;AACtD,MAAOD,OAAME,OAAb;AACD;AACD,MAAO,EAAP;AACD,CAlC0B;AAmC3BC,MAAO,eAAUH,KAAV,CAAiB;;;AAGtB,GAAIA,MAAMC,IAAN,GAAe,UAAnB,CAA+B;AAC7B,MAAOf,kBAAiBc,KAAjB,CAAP;AACD;AACD,GAAIA,MAAMC,IAAN,GAAe,SAAf,EAA4BD,MAAMC,IAAN,GAAe,OAA/C,CAAwD;AACtD,MAAOD,OAAME,OAAb;AACD;AACD,MAAO,EAAP;AACD,CA7C0B,CAA7B;;;;;;;;;AAsDA,QAASE,uBAAT,CAAgCC,cAAhC,CAAgDC,cAAhD,CAAgEC,WAAhE,CAA6EC,iBAA7E,CAAgG;AAC9F,MAAOxB,kBAAiByB,IAAjB,CAAsB,IAAtB,CAA4BJ,cAA5B,CAA4CC,cAA5C,CAA4DC,WAA5D,CAAyEC,iBAAzE,CAAP;AACD;;AAEDxB,iBAAiB0B,YAAjB,CAA8BN,sBAA9B,CAAsDf,sBAAtD;;AAEAsB,OAAOC,OAAP,CAAiBR,sBAAjB","file":"SyntheticKeyboardEvent.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\nvar SyntheticUIEvent = require('./SyntheticUIEvent');\n\nvar getEventCharCode = require('./getEventCharCode');\nvar getEventKey = require('./getEventKey');\nvar getEventModifierState = require('./getEventModifierState');\n\n/**\n * @interface KeyboardEvent\n * @see http://www.w3.org/TR/DOM-Level-3-Events/\n */\nvar KeyboardEventInterface = {\n  key: getEventKey,\n  location: null,\n  ctrlKey: null,\n  shiftKey: null,\n  altKey: null,\n  metaKey: null,\n  repeat: null,\n  locale: null,\n  getModifierState: getEventModifierState,\n  // Legacy Interface\n  charCode: function (event) {\n    // `charCode` is the result of a KeyPress event and represents the value of\n    // the actual printable character.\n\n    // KeyPress is deprecated, but its replacement is not yet final and not\n    // implemented in any major browser. Only KeyPress has charCode.\n    if (event.type === 'keypress') {\n      return getEventCharCode(event);\n    }\n    return 0;\n  },\n  keyCode: function (event) {\n    // `keyCode` is the result of a KeyDown/Up event and represents the value of\n    // physical keyboard key.\n\n    // The actual meaning of the value depends on the users' keyboard layout\n    // which cannot be detected. Assuming that it is a US keyboard layout\n    // provides a surprisingly accurate mapping for US and European users.\n    // Due to this, it is left to the user to implement at this time.\n    if (event.type === 'keydown' || event.type === 'keyup') {\n      return event.keyCode;\n    }\n    return 0;\n  },\n  which: function (event) {\n    // `which` is an alias for either `keyCode` or `charCode` depending on the\n    // type of the event.\n    if (event.type === 'keypress') {\n      return getEventCharCode(event);\n    }\n    if (event.type === 'keydown' || event.type === 'keyup') {\n      return event.keyCode;\n    }\n    return 0;\n  }\n};\n\n/**\n * @param {object} dispatchConfig Configuration used to dispatch this event.\n * @param {string} dispatchMarker Marker identifying the event target.\n * @param {object} nativeEvent Native browser event.\n * @extends {SyntheticUIEvent}\n */\nfunction SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {\n  return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);\n}\n\nSyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);\n\nmodule.exports = SyntheticKeyboardEvent;"]}