diff --git a/index.html b/index.html
index 5c4d815..ab08480 100644
--- a/index.html
+++ b/index.html
@@ -1,2 +1,2 @@
-
hotkeys.js - A robust Javascript library for capturing keyboard input.
+hotkeys.js - A robust Javascript library for capturing keyboard input.
\ No newline at end of file
diff --git a/website.85bfef3e.js b/website.990e6ef2.js
similarity index 99%
rename from website.85bfef3e.js
rename to website.990e6ef2.js
index a5e89ca..a4cdd75 100644
--- a/website.85bfef3e.js
+++ b/website.990e6ef2.js
@@ -637,9 +637,9 @@ module.exports={version:"_version_044f0",keyCodeInfo:"_keyCodeInfo_044f0",header
},{}],"OviO":[function(require,module,exports) {
module.exports = "# Hotkeys\n\n\n\n[![](https://img.shields.io/github/issues/jaywcjlove/hotkeys.svg)](https://github.com/jaywcjlove/hotkeys/issues) [![](https://img.shields.io/github/forks/jaywcjlove/hotkeys.svg)](https://github.com/jaywcjlove/hotkeys/network) [![](https://img.shields.io/github/stars/jaywcjlove/hotkeys.svg)](https://github.com/jaywcjlove/hotkeys/stargazers) [![](https://img.shields.io/github/release/jaywcjlove/hotkeys.svg)](https://github.com/jaywcjlove/hotkeys/releases) ![](http://jaywcjlove.github.io/sb/status/no-dependencies.svg) [![Build Status](https://www.travis-ci.org/jaywcjlove/hotkeys.svg?branch=master)](https://www.travis-ci.org/jaywcjlove/hotkeys) [![Coverage Status](https://coveralls.io/repos/github/jaywcjlove/hotkeys/badge.svg?branch=master)](https://coveralls.io/github/jaywcjlove/hotkeys?branch=master) [![jaywcjlove/hotkeys](https://jaywcjlove.github.io/sb/lang/chinese.svg)](./README-zh.md) [![jaywcjlove/hotkeys](https://jaywcjlove.github.io/sb/ico/gitee.svg)](https://gitee.com/jaywcjlove/hotkeys)\n\nHotKeys.js is an input capture library with some very special features, it is easy to pick up and use, has a reasonable footprint (~3kb) (gzipped: 1.73kb), and has no dependencies. It should not interfere with any JavaScript libraries or frameworks. Official document [demo preview](http://jaywcjlove.github.io/hotkeys). [More examples](https://github.com/jaywcjlove/hotkeys/issues?q=label%3ADemo+).\n\n```shell\n╭┈┈╮ ╭┈┈╮ ╭┈┈╮\n┆ ├┈┈..┈┈┈┈┈.┆ └┈╮┆ ├┈┈..┈┈┈┈┈..┈┈.┈┈..┈┈┈┈┈.\n┆ ┆┆ □ ┆┆ ┈┤┆ < ┆ -__┘┆ ┆ ┆┆__ ┈┈┤\n╰┈┈┴┈┈╯╰┈┈┈┈┈╯╰┈┈┈┈╯╰┈┈┴┈┈╯╰┈┈┈┈┈╯╰┈┈┈ ┆╰┈┈┈┈┈╯\n ╰┈┈┈┈┈╯\n```\n\n## Usage\n\nYou will need `Node.js` installed on your system.\n\n```shell\n$ npm install hotkeys-js --save\n```\n\n```js\nimport hotkeys from 'hotkeys-js';\n\nhotkeys('f5', function(event, handler){\n // Prevent the default refresh event under WINDOWS system\n event.preventDefault() \n alert('you pressed F5!') \n});\n```\n\nOr manually download and link **hotkeys.js** in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/hotkeys-js/dist/):\n\n```html\n\n\n```\n\n### Used in React\n\n[react-hotkeys](https://github.com/jaywcjlove/react-hotkeys) is the React component that listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.\n\n```shell\n$ npm install react-hot-keys --save\n```\n\nDetailed use method please see its documentation [react-hotkeys](https://github.com/jaywcjlove/react-hotkeys).\n\n## Browser Support\n\nHotkeys.js has been tested and should work in.\n\n```shell\nInternet Explorer 6+\nSafari\nFirefox\nChrome\n```\n\n## Supported Keys\n\nHotKeys understands the following modifiers: `⇧`, `shift`, `option`, `⌥`, `alt`, `ctrl`, `control`, `command`, and `⌘`.\n\nThe following special keys can be used for shortcuts: backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete and f1 through f19.\n\n`⌘` Command() \n`⌃` Control \n`⌥` Option(alt) \n`⇧` Shift \n`⇪` Caps Lock(Capital) \n~~`fn` Does not support fn~~ \n`↩︎` return/Enter space \n\n## Defining Shortcuts\n\nOne global method is exposed, key which defines shortcuts when called directly.\n\n```\nhotkeys([keys:], [option:[string|object|function]], [callback:])\n```\n\n\n```js\nhotkeys('f5', function(event, handler) {\n // Prevent the default refresh event under WINDOWS system\n event.preventDefault();\n alert('you pressed F5!');\n});\n\n// Returning false stops the event and prevents default browser events\n// Mac OS system defines `command + r` as a refresh shortcut\nhotkeys('ctrl+r, command+r', function() {\n alert('stopped reload!');\n return false;\n});\n\n// SIngle key\nhotkeys('a', function(event,handler){\n //event.srcElement: input \n //event.target: input\n if(event.target === \"input\"){\n alert('you pressed a!')\n }\n alert('you pressed a!') \n});\n\n// Key Combenation\nhotkeys('ctrl+a,ctrl+b,r,f', function (event, handler){\n switch (handler.key) {\n case 'ctrl+a': alert('you pressed ctrl+a!');\n break;\n case 'ctrl+b': alert('you pressed ctrl+b!');\n break;\n case 'r': alert('you pressed r!');\n break;\n case 'f': alert('you pressed f!');\n break;\n default: alert(event);\n }\n});\n\nhotkeys('ctrl+a+s', function() {\n alert('you pressed ctrl+a+s!');\n});\n\n// Using a scope\nhotkeys('*','wcj', function(event){\n console.log('do something', event);\n});\n```\n\n#### option \n\n- `scope`\n- `element`\n- `keyup`\n- `keydown`\n- `splitKey` (default is `+`)\n\n```js\nhotkeys('o, enter', {\n scope: 'wcj',\n element: document.getElementById('wrapper'),\n}, function(){ \n console.log('do something else');\n});\n\nhotkeys('ctrl-+', { splitKey: '-' }, function(e) {\n console.log('you pressed ctrl and +');\n});\n\nhotkeys('+', { splitKey: '-' }, function(e){\n console.log('you pressed +');\n})\n```\n\n## API REFERENCE\n\nAsterisk \"*\"\n\nModifier key judgments\n\n```js\nhotkeys('*', function() {\n if (hotkeys.shift) {\n console.log('shift is pressed!');\n }\n\n if (hotkeys.ctrl) {\n console.log('ctrl is pressed!');\n }\n\n if (hotkeys.alt) {\n console.log('alt is pressed!');\n }\n\n if (hotkeys.option) {\n console.log('option is pressed!');\n }\n\n if (hotkeys.control) {\n console.log('control is pressed!');\n }\n\n if (hotkeys.cmd) {\n console.log('cmd is pressed!');\n }\n\n if (hotkeys.command) {\n console.log('command is pressed!');\n }\n});\n```\n\n### setScope\n\nUse the `hotkeys.setScope` method to set scope. There can only be one active scope besides 'all'. By default 'all' is always active.\n\n```js\n// Define shortcuts with a scope\nhotkeys('ctrl+o, ctrl+alt+enter', 'issues', function(){\n console.log('do something');\n});\nhotkeys('o, enter', 'files', function(){ \n console.log('do something else');\n});\n\n// Set the scope (only 'all' and 'issues' shortcuts will be honored)\nhotkeys.setScope('issues'); // default scope is 'all'\n```\n\n### getScope\n\nUse the `hotkeys.getScope` method to get scope.\n\n```js\nhotkeys.getScope();\n```\n\n### deleteScope\n\nUse the `hotkeys.deleteScope` method to delete a scope. This will also remove all associated hotkeys with it.\n\n```js\nhotkeys.deleteScope('issues');\n```\n\n### unbind\n\nSimilar to defining shortcuts, they can be unbound using `hotkeys.unbind`.\n\n```js\n// unbind 'a' handler\nhotkeys.unbind('a');\n\n// Unbind a hotkeys only for a single scope\n// If no scope is specified it defaults to the current scope (hotkeys.getScope())\nhotkeys.unbind('o, enter', 'issues');\nhotkeys.unbind('o, enter', 'files');\n```\n\nUnbind events through functions.\n\n```js\nfunction example() {\n hotkeys('a', example);\n hotkeys.unbind('a', example);\n\n hotkeys('a', 'issues', example);\n hotkeys.unbind('a', 'issues', example);\n}\n```\n\n### isPressed\n\nFor example, `hotkeys.isPressed(77)` is true if the `M` key is currently pressed.\n\n```js\nhotkeys('a', function() {\n console.log(hotkeys.isPressed('a')); //=> true\n console.log(hotkeys.isPressed('A')); //=> true\n console.log(hotkeys.isPressed(65)); //=> true\n});\n```\n\n## keyup\n\n**key down** and **key up** both perform callback events.\n\n```js\nhotkeys('ctrl+a,alt+a+s', {keyup: true}, function(event, handler) {\n if (event.type === 'keydown') {\n console.log('keydown:', event.type, handler, handler.key);\n }\n\n if (event.type === 'keyup') {\n console.log('keyup:', event.type, handler, handler.key);\n }\n});\n```\n\n### getPressedKeyCodes\n\nReturns an array of key codes currently pressed.\n\n```js\nhotkeys('command+ctrl+shift+a,f', function(){\n console.log(hotkeys.getPressedKeyCodes()); //=> [17, 65] or [70]\n})\n```\n\n### filter\n\nBy default hotkeys are not enabled for `INPUT` `SELECT` `TEXTAREA` elements. `Hotkeys.filter` to return to the `true` shortcut keys set to play a role, `false` shortcut keys set up failure.\n\n```js\nhotkeys.filter = function(event){\n return true;\n}\n//How to add the filter to edit labels. \n//\"contentEditable\" Older browsers that do not support drops\nhotkeys.filter = function(event) {\n var tagName = (event.target || event.srcElement).tagName;\n return !(tagName.isContentEditable || tagName == 'INPUT' || tagName == 'SELECT' || tagName == 'TEXTAREA');\n}\n\nhotkeys.filter = function(event){\n var tagName = (event.target || event.srcElement).tagName;\n hotkeys.setScope(/^(INPUT|TEXTAREA|SELECT)$/.test(tagName) ? 'input' : 'other');\n return true;\n}\n```\n\n### noConflict\n\nRelinquish HotKeys’s control of the `hotkeys` variable.\n\n```js\nvar k = hotkeys.noConflict();\nk('a', function() {\n console.log(\"do something\")\n});\n\nhotkeys()\n// -->Uncaught TypeError: hotkeys is not a function(anonymous function) \n// @ VM2170:2InjectedScript._evaluateOn \n// @ VM2165:883InjectedScript._evaluateAndWrap \n// @ VM2165:816InjectedScript.evaluate @ VM2165:682\n```\n \n## Development\n\nTo develop, Install dependencies, Get the code:\n\n```shell\n$ git https://github.com/jaywcjlove/hotkeys.git\n$ cd hotkeys # Into the directory\n$ npm install # or yarn install\n```\n\nTo develop, run the self-reloading build:\n\n```shell\n$ npm run watch\n```\n\nRun Document Website Environment.\n\n```shell\n$ npm run doc:dev\n```\n\nTo contribute, please fork Hotkeys.js, add your patch and tests for it (in the `test/` folder) and submit a pull request.\n\n```shell\n$ npm run test\n$ npm run test:watch # Development model\n```\n\n## License\n\n[MIT © Kenny Wong](./LICENSE)\n"
},{}],"yNIz":[function(require,module,exports) {
-"use strict";var e=t(require("@babel/runtime/helpers/typeof"));function t(e){return e&&e.__esModule?e:{default:e}}function n(t){return(n="function"==typeof Symbol&&"symbol"===(0,e.default)(Symbol.iterator)?function(t){return(0,e.default)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":(0,e.default)(t)})(t)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r,i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function a(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function f(e,t){for(var n=t.slice(0,t.length-1),o=0;o=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function l(e,t){for(var n=e.length>=t.length?e:t,o=e.length>=t.length?t:e,r=!0,i=0;i=0&&v.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&v.splice(0,v.length),93!==t&&224!==t||(t=91),t in y)for(var o in y[t]=!1,u)u[o]===t&&(T[o]=!1)}function j(e){if(e){if(Array.isArray(e))e.forEach(function(e){e.key&&P(e)});else if("object"===n(e))e.key&&P(e);else if("string"==typeof e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r1?f(u,t):[];d[c]=d[c].map(function(e){return(!o||e.method===o)&&e.scope===n&&l(e.mods,s)?{}:e})}})};function A(e,t,n){var o;if(t.scope===n||"all"===t.scope){for(var r in o=t.mods.length>0,y)Object.prototype.hasOwnProperty.call(y,r)&&(!y[r]&&t.mods.indexOf(+r)>-1||y[r]&&-1===t.mods.indexOf(+r))&&(o=!1);(0!==t.mods.length||y[16]||y[18]||y[17]||y[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function S(e){var t=d["*"],n=e.keyCode||e.which||e.charCode;if(T.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===v.indexOf(n)&&229!==n&&v.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=p[t];e[t]&&-1===v.indexOf(n)?v.push(n):!e[t]&&v.indexOf(n)>-1&&v.splice(v.indexOf(n),1)}),n in y){for(var o in y[n]=!0,u)u[o]===n&&(T[o]=!0);if(!t)return}for(var r in y)Object.prototype.hasOwnProperty.call(y,r)&&(y[r]=e[p[r]]);var i=b();if(t)for(var a=0;a-1}function T(e,t,n){v=[];var o=c(e),r=[],i="all",l=document,s=0,p=!1,y=!0,h="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(l=t.element),t.keyup&&(p=t.keyup),void 0!==t.keydown&&(y=t.keydown),"string"==typeof t.splitKey&&(h=t.splitKey)),"string"==typeof t&&(i=t);s1&&(r=f(u,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in d||(d[e]=[]),d[e].push({keyup:p,keydown:y,scope:i,mods:r,shortcut:o[s],method:n,key:o[s],splitKey:h});void 0!==l&&!L(l)&&window&&(w.push(l),a(l,"keydown",function(e){S(e)}),a(window,"focus",function(){v=[]}),a(l,"keyup",function(e){S(e),E(e)}))}var I={setScope:k,getScope:b,deleteScope:C,getPressedKeyCodes:O,isPressed:x,filter:K,unbind:j};for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(T[B]=I[B]);if("undefined"!=typeof window){var D=window.hotkeys;T.noConflict=function(e){return e&&window.hotkeys===T&&(window.hotkeys=D),T},window.hotkeys=T}module.exports=T;
+"use strict";var e=t(require("@babel/runtime/helpers/typeof"));function t(e){return e&&e.__esModule?e:{default:e}}function n(t){return(n="function"==typeof Symbol&&"symbol"===(0,e.default)(Symbol.iterator)?function(t){return(0,e.default)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":(0,e.default)(t)})(t)}var o="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function i(e,t){for(var n=t.slice(0,t.length-1),o=0;o=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function f(e,t){for(var n=e.length>=t.length?e:t,o=e.length>=t.length?t:e,r=!0,i=0;i=0&&d.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&d.splice(0,d.length),93!==t&&224!==t||(t=91),t in p)for(var o in p[t]=!1,l)l[o]===t&&(S[o]=!1)}function C(e){if(e){if(Array.isArray(e))e.forEach(function(e){e.key&&E(e)});else if("object"===n(e))e.key&&E(e);else if("string"==typeof e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r1?i(l,t):[];u[s]=u[s].map(function(e){return(!o||e.method===o)&&e.scope===n&&f(e.mods,p)?{}:e})}})};function j(e,t,n){var o;if(t.scope===n||"all"===t.scope){for(var r in o=t.mods.length>0,p)Object.prototype.hasOwnProperty.call(p,r)&&(!p[r]&&t.mods.indexOf(+r)>-1||p[r]&&-1===t.mods.indexOf(+r))&&(o=!1);(0!==t.mods.length||p[16]||p[18]||p[17]||p[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function A(e){var t=u["*"],n=e.keyCode||e.which||e.charCode;if(S.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===d.indexOf(n)&&229!==n&&d.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=s[t];e[t]&&-1===d.indexOf(n)?d.push(n):!e[t]&&d.indexOf(n)>-1&&d.splice(d.indexOf(n),1)}),n in p){for(var o in p[n]=!0,l)l[o]===n&&(S[o]=!0);if(!t)return}for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&(p[r]=e[s[r]]);var i=k();if(t)for(var a=0;a-1}function S(e,t,n){d=[];var o=a(e),f=[],c="all",s=document,p=0,y=!1,h=!0,w="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(c=t.scope),t.element&&(s=t.element),t.keyup&&(y=t.keyup),void 0!==t.keydown&&(h=t.keydown),"string"==typeof t.splitKey&&(w=t.splitKey)),"string"==typeof t&&(c=t);p1&&(f=i(l,e)),(e="*"===(e=e[e.length-1])?"*":g(e))in u||(u[e]=[]),u[e].push({keyup:y,keydown:h,scope:c,mods:f,shortcut:o[p],method:n,key:o[p],splitKey:w});void 0!==s&&!P(s)&&window&&(v.push(s),r(s,"keydown",function(e){A(e)}),r(window,"focus",function(){d=[]}),r(s,"keyup",function(e){A(e),x(e)}))}var L={setScope:w,getScope:k,deleteScope:K,getPressedKeyCodes:m,isPressed:O,filter:b,unbind:C};for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&(S[T]=L[T]);if("undefined"!=typeof window){var I=window.hotkeys;S.noConflict=function(e){return e&&window.hotkeys===S&&(window.hotkeys=I),S},window.hotkeys=S}module.exports=S;
},{"@babel/runtime/helpers/typeof":"b9XL"}],"EHrm":[function(require,module,exports) {
-module.exports={name:"hotkeys-js",description:"A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",version:"3.7.1",main:"index.js",types:"index.d.ts",module:"dist/hotkeys.esm.js",scripts:{lint:"eslint --ext .js src website",deploy:"node scripts/build.js && npm run doc:build && gh-pages -d doc",build:"node scripts/build.js && npm run doc:build",watch:"node scripts/watch.js",pretest:"npm run build",test:"jest --coverage","test:watch":"jest --watch",doc:"npm run doc:dev","doc:dev":"NODE_ENV=development parcel website/index.html --out-dir doc --no-cache","doc:build":"rimraf doc && NODE_ENV=production parcel build website/index.html --out-dir doc --public-url ./ --no-cache --no-source-maps"},files:["index.d.ts","dist","doc"],husky:{hooks:{"pre-commit":"npm run lint"}},keywords:["hotkey","hotkeys","hotkeys-js","hotkeysjs","key","keys","keyboard","shortcuts","keypress"],author:"kenny wong ",license:"MIT",homepage:"http://jaywcjlove.github.io/hotkeys",repository:{type:"git",url:"https://github.com/jaywcjlove/hotkeys.git"},jest:{testURL:"http://localhost/"},dependencies:{},devDependencies:{"@babel/core":"^7.4.4","@babel/plugin-external-helpers":"^7.2.0","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/preset-react":"^7.0.0",autoprefixer:"^8.6.1","babel-eslint":"^8.2.3",bannerjs:"^1.0.5",classnames:"^2.2.5","colors-cli":"^1.0.13",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.12.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.9.1","gh-pages":"^1.2.0","highlight.js":"^9.12.0",husky:"^1.3.1",jest:"^24.8.0",less:"^3.0.4","parcel-bundler":"^1.12.3","parcel-plugin-markdown-string":"^1.3.5","postcss-modules":"^1.1.0",puppeteer:"^1.14.0",react:"^16.7.0","react-dom":"^16.7.0","react-markdown":"^3.3.2",rimraf:"^2.6.3",rollup:"^1.11.0","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.3.4","rollup-plugin-node-resolve":"^4.2.3","uglify-js":"^3.4.0",zlib:"^1.0.5"}};
+module.exports={name:"hotkeys-js",description:"A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",version:"3.7.2",main:"index.js",types:"index.d.ts",module:"dist/hotkeys.esm.js",scripts:{lint:"eslint --ext .js src website",deploy:"node scripts/build.js && npm run doc:build && gh-pages -d doc",build:"node scripts/build.js && npm run doc:build",watch:"node scripts/watch.js",pretest:"npm run build",test:"jest --coverage","test:watch":"jest --watch",doc:"npm run doc:dev","doc:dev":"NODE_ENV=development parcel website/index.html --out-dir doc --no-cache","doc:build":"rimraf doc && NODE_ENV=production parcel build website/index.html --out-dir doc --public-url ./ --no-cache --no-source-maps"},files:["index.d.ts","dist","doc"],husky:{hooks:{"pre-commit":"npm run lint"}},keywords:["hotkey","hotkeys","hotkeys-js","hotkeysjs","key","keys","keyboard","shortcuts","keypress"],author:"kenny wong ",license:"MIT",homepage:"http://jaywcjlove.github.io/hotkeys",repository:{type:"git",url:"https://github.com/jaywcjlove/hotkeys.git"},jest:{testURL:"http://localhost/"},dependencies:{},devDependencies:{"@babel/core":"^7.4.4","@babel/plugin-external-helpers":"^7.2.0","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/preset-react":"^7.0.0",autoprefixer:"^8.6.1","babel-eslint":"^8.2.3",bannerjs:"^1.0.5",classnames:"^2.2.5","colors-cli":"^1.0.13",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-plugin-import":"^2.12.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.9.1","gh-pages":"^1.2.0","highlight.js":"^9.12.0",husky:"^1.3.1",jest:"^24.8.0",less:"^3.0.4","parcel-bundler":"^1.12.3","parcel-plugin-markdown-string":"^1.3.5","postcss-modules":"^1.1.0",puppeteer:"^1.14.0",react:"^16.7.0","react-dom":"^16.7.0","react-markdown":"^3.3.2",rimraf:"^2.6.3",rollup:"^1.11.0","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.3.4","rollup-plugin-node-resolve":"^4.2.3","uglify-js":"^3.4.0",zlib:"^1.0.5"}};
},{}],"lY9v":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=v(require("@babel/runtime/helpers/classCallCheck")),t=v(require("@babel/runtime/helpers/createClass")),o=v(require("@babel/runtime/helpers/possibleConstructorReturn")),a=v(require("@babel/runtime/helpers/getPrototypeOf")),n=v(require("@babel/runtime/helpers/assertThisInitialized")),r=v(require("@babel/runtime/helpers/inherits")),l=m(require("react")),u=v(require("./components/GithubCorner")),s=v(require("./components/KeyBoard")),i=v(require("./components/Footer")),c=v(require("./components/Markdown")),d=v(require("./components/GithubShields")),h=v(require("./styles/index.less")),f=v(require("../README.md")),y=v(require("../dist/hotkeys.common")),p=v(require("../package.json"));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};a.get||a.set?Object.defineProperty(t,o,a):t[o]=e[o]}return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}var k=function(m){function v(){var t;return(0,e.default)(this,v),(t=(0,o.default)(this,(0,a.default)(v).call(this))).state={keyCode:[],keyStr:[]},t.onKeyUpEvent=t.onKeyUpEvent.bind((0,n.default)(t)),t}return(0,r.default)(v,m),(0,t.default)(v,[{key:"componentDidMount",value:function(){var e=this;function t(e,t){return-1===e.indexOf(t)&&e.push(t),e}function o(e,t){return-1===e.indexOf(t)&&e.push(t),e}return document.addEventListener("keyup",this.onKeyUpEvent),(0,y.default)("*",function(a){a.preventDefault();var n=[],r=[];y.default.shift&&(t(n,16),o(r,"shift")),y.default.ctrl&&(t(n,17),o(r,"ctrl")),y.default.alt&&(t(n,18),o(r,"alt")),y.default.control&&(t(n,17),o(r,"control")),y.default.command&&(t(n,91),o(r,"command")),r.push(a.keyCode),-1===n.indexOf(a.keyCode)&&n.push(a.keyCode),e.setState({keyCode:n,keyStr:r})}),!1}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.onKeyUpEvent)}},{key:"onKeyUpEvent",value:function(){this.setState({keyCode:[],keyStr:[]})}},{key:"onKeyBoardMouseDown",value:function(e){e.keycode>-1&&this.setState({keyStr:[e.keycode]})}},{key:"onKeyBoardMouseUp",value:function(){this.setState({keyStr:[]})}},{key:"openVersionWebsite",value:function(e){e.target&&e.target.value&&(window.location.href=e.target.value)}},{key:"render",value:function(){var e=this.state.keyStr,t=f.default;return t&&(t=f.default.replace(/([\s\S]*)/,"")),l.default.createElement("div",null,l.default.createElement("select",{className:h.default.version,onChange:this.openVersionWebsite.bind(this)},l.default.createElement("option",{value:"https://jaywcjlove.github.io/hotkeys"},"v",p.default.version),l.default.createElement("option",{value:"https://unpkg.com/hotkeys-js@3.4.3/doc/index.html"},"v3.4.3"),l.default.createElement("option",{value:"https://unpkg.com/hotkeys-js@3.4.2/doc/index.html"},"v3.4.2"),l.default.createElement("option",{value:"https://unpkg.com/hotkeys-js@2.0.10/doc/index.html"},"v2.0.10")),e.length>-1&&l.default.createElement("div",{className:h.default.keyCodeInfo},e.map(function(e){return l.default.createElement("span",{key:"".concat(e)},e)})),l.default.createElement(u.default,{url:"https://github.com/jaywcjlove/hotkeys"}),l.default.createElement("div",{className:h.default.header},l.default.createElement("div",{className:h.default.title},"HotKeys.js"),l.default.createElement("div",{className:h.default.github},l.default.createElement("a",{href:"https://www.npmjs.com/package/hotkeys-js"},l.default.createElement("button",null,"On NPM")),l.default.createElement("a",{href:"https://github.com/jaywcjlove/hotkeys/"},l.default.createElement("button",null,"Fork on Github")),l.default.createElement("a",{href:"https://github.com/jaywcjlove/hotkeys/"},l.default.createElement("button",null,"Doc on Github")),l.default.createElement("a",{href:"https://jaywcjlove.gitee.io/hotkeys/"},l.default.createElement("button",null,"Doc on Gitee"))),l.default.createElement("div",{className:h.default.info},"A robust Javascript library for capturing keyboard input and key combinations entered. It has no dependencies. Try to press your keyboard, The following button will highlight.")),l.default.createElement(s.default,{onMouseDown:this.onKeyBoardMouseDown.bind(this),onMouseUp:this.onKeyBoardMouseUp.bind(this),keyCode:this.state.keyCode}),l.default.createElement(c.default,{source:t}),l.default.createElement(d.default,{source:[{href:"https://github.com/jaywcjlove/hotkeys/stargazers",img:"https://img.shields.io/github/stars/jaywcjlove/hotkeys.svg"},{href:"https://github.com/jaywcjlove/hotkeys/network",img:"https://img.shields.io/github/forks/jaywcjlove/hotkeys.svg"},{href:"https://github.com/jaywcjlove/hotkeys/watchers",img:"https://img.shields.io/github/watchers/jaywcjlove/hotkeys.svg?label=Watch"},{href:"https://github.com/jaywcjlove/followers",img:"https://img.shields.io/github/followers/jaywcjlove.svg"},{href:"https://gitee.com/jaywcjlove/hotkeys",img:"https://jaywcjlove.github.io/sb/ico/gitee.svg"}]}),l.default.createElement(i.default,{name:"Kenny Wong",href:"http://jaywcjlove.github.io",year:"2015-present"}))}}]),v}(l.Component);exports.default=k;
},{"@babel/runtime/helpers/classCallCheck":"0fcM","@babel/runtime/helpers/createClass":"P8NW","@babel/runtime/helpers/possibleConstructorReturn":"0421","@babel/runtime/helpers/getPrototypeOf":"UJE0","@babel/runtime/helpers/assertThisInitialized":"E7HD","@babel/runtime/helpers/inherits":"d4H2","react":"1n8/","./components/GithubCorner":"q0X/","./components/KeyBoard":"Y40V","./components/Footer":"9f+Z","./components/Markdown":"sza+","./components/GithubShields":"n1B7","./styles/index.less":"rzuK","../README.md":"OviO","../dist/hotkeys.common":"yNIz","../package.json":"EHrm"}],"f9Gk":[function(require,module,exports) {