released v3.4.3

pull/54/head v3.4.3
jaywcjlove 6 years ago
parent b54706029d
commit b9b21ab45d

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.4.2
* hotkeys-js v3.4.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>

@ -1,2 +1,2 @@
/*! hotkeys-js v3.4.2 | MIT (c) 2019 kenny wong <wowohoo@qq.com> | http://jaywcjlove.github.io/hotkeys */
/*! hotkeys-js v3.4.3 | MIT (c) 2019 kenny wong <wowohoo@qq.com> | http://jaywcjlove.github.io/hotkeys */
"use strict";var isff="undefined"!=typeof navigator&&0<navigator.userAgent.toLowerCase().indexOf("firefox");function addEvent(e,o,t){e.addEventListener?e.addEventListener(o,t,!1):e.attachEvent&&e.attachEvent("on"+o,function(){t(window.event)})}function getMods(e,o){for(var t=o.slice(0,o.length-1),n=0;n<t.length;n++)t[n]=e[t[n].toLowerCase()];return t}function getKeys(e){e||(e="");for(var o=(e=e.replace(/\s/g,"")).split(","),t=o.lastIndexOf("");0<=t;)o[t-1]+=",",o.splice(t,1),t=o.lastIndexOf("");return o}function compareArray(e,o){for(var t=e.length<o.length?o:e,n=e.length<o.length?e:o,r=!0,s=0;s<t.length;s++)-1===n.indexOf(t[s])&&(r=!1);return r}for(var _keyMap={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":isff?224:91,cmd:isff?224:91,command:isff?224:91},_downKeys=[],modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey"},_mods={16:!1,18:!1,17:!1},_handlers={},k=1;k<20;k++)_keyMap["f"+k]=111+k;var _scope="all",isBindElement=_mods[isff?224:91]=!(modifierMap[isff?224:91]="metaKey"),code=function(e){return _keyMap[e.toLowerCase()]||_modifier[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function setScope(e){_scope=e||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function filter(e){var o=e.target||e.srcElement,t=o.tagName;return!("INPUT"===t||"SELECT"===t||"TEXTAREA"===t||o.isContentEditable)}function isPressed(e){return"string"==typeof e&&(e=code(e)),-1!==_downKeys.indexOf(e)}function deleteScope(e,o){var t=void 0,n=void 0;for(var r in e||(e=getScope()),_handlers)if(Object.prototype.hasOwnProperty.call(_handlers,r))for(t=_handlers[r],n=0;n<t.length;)t[n].scope===e?t.splice(n,1):n++;getScope()===e&&setScope(o||"all")}function clearModifier(e){var o=e.keyCode||e.which||e.charCode,t=_downKeys.indexOf(o);if(t<0||_downKeys.splice(t,1),93!==o&&224!==o||(o=91),o in _mods)for(var n in _mods[o]=!1,_modifier)_modifier[n]===o&&(hotkeys[n]=!1)}function unbind(e,o,t){var n=getKeys(e),r=void 0,s=[],i=void 0;"function"==typeof o&&(t=o,o="all");for(var d=0;d<n.length;d++){if(1<(r=n[d].split("+")).length&&(s=getMods(_modifier,r)),e="*"===(e=r[r.length-1])?"*":code(e),o||(o=getScope()),!_handlers[e])return;for(var a=0;a<_handlers[e].length;a++){if(i=_handlers[e][a],t&&i.method!==t)return;i.scope===o&&compareArray(i.mods,s)&&(_handlers[e][a]={})}}}function eventHandler(e,o,t){var n=void 0;if(o.scope===t||"all"===o.scope){for(var r in n=0<o.mods.length,_mods)Object.prototype.hasOwnProperty.call(_mods,r)&&(!_mods[r]&&-1<o.mods.indexOf(+r)||_mods[r]&&-1===o.mods.indexOf(+r))&&(n=!1);(0!==o.mods.length||_mods[16]||_mods[18]||_mods[17]||_mods[91])&&!n&&"*"!==o.shortcut||!1===o.method(e,o)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function dispatch(e){var o=_handlers["*"],t=e.keyCode||e.which||e.charCode;if(-1===_downKeys.indexOf(t)&&_downKeys.push(t),93!==t&&224!==t||(t=91),t in _mods){for(var n in _mods[t]=!0,_modifier)_modifier[n]===t&&(hotkeys[n]=!0);if(!o)return}for(var r in _mods)Object.prototype.hasOwnProperty.call(_mods,r)&&(_mods[r]=e[modifierMap[r]]);if(hotkeys.filter.call(this,e)){var s=getScope();if(o)for(var i=0;i<o.length;i++)o[i].scope===s&&eventHandler(e,o[i],s);if(t in _handlers)for(var d=0;d<_handlers[t].length;d++)eventHandler(e,_handlers[t][d],s)}}function hotkeys(e,o,t){var n=getKeys(e),r=[],s="all",i=document,d=0;for(void 0===t&&"function"==typeof o&&(t=o),"[object Object]"===Object.prototype.toString.call(o)&&(o.scope&&(s=o.scope),o.element&&(i=o.element)),"string"==typeof o&&(s=o);d<n.length;d++)r=[],1<(e=n[d].split("+")).length&&(r=getMods(_modifier,e)),(e="*"===(e=e[e.length-1])?"*":code(e))in _handlers||(_handlers[e]=[]),_handlers[e].push({scope:s,mods:r,shortcut:n[d],method:t,key:n[d]});void 0===i||isBindElement||(isBindElement=!0,addEvent(i,"keydown",function(e){dispatch(e)}),addEvent(i,"keyup",function(e){clearModifier(e)}))}var _api={setScope:setScope,getScope:getScope,deleteScope:deleteScope,getPressedKeyCodes:getPressedKeyCodes,isPressed:isPressed,filter:filter,unbind:unbind};for(var a in _api)Object.prototype.hasOwnProperty.call(_api,a)&&(hotkeys[a]=_api[a]);if("undefined"!=typeof window){var _hotkeys=window.hotkeys;hotkeys.noConflict=function(e){return e&&window.hotkeys===hotkeys&&(window.hotkeys=_hotkeys),hotkeys},window.hotkeys=hotkeys}module.exports=hotkeys;

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.4.2
* hotkeys-js v3.4.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>

2
dist/hotkeys.js vendored

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.4.2
* hotkeys-js v3.4.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>

@ -1,2 +1,2 @@
/*! hotkeys-js v3.4.2 | MIT (c) 2019 kenny wong <wowohoo@qq.com> | http://jaywcjlove.github.io/hotkeys */
/*! hotkeys-js v3.4.3 | MIT (c) 2019 kenny wong <wowohoo@qq.com> | http://jaywcjlove.github.io/hotkeys */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.hotkeys=t()}(this,function(){"use strict";var e="undefined"!=typeof navigator&&0<navigator.userAgent.toLowerCase().indexOf("firefox");function c(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,function(){n(window.event)})}function l(e,t){for(var n=t.slice(0,t.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function s(e){e||(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");0<=n;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function d(e,t){for(var n=e.length<t.length?t:e,o=e.length<t.length?e:t,r=!0,i=0;i<n.length;i++)-1===o.indexOf(n[i])&&(r=!1);return r}for(var t={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":e?173:189,"=":e?61:187,";":e?59:186,"'":222,"[":219,"]":221,"\\":220},p={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":e?224:91,cmd:e?224:91,command:e?224:91},u=[],h={16:"shiftKey",18:"altKey",17:"ctrlKey"},v={16:!1,18:!1,17:!1},g={},n=1;n<20;n++)t["f"+n]=111+n;var o="all",y=v[e?224:91]=!(h[e?224:91]="metaKey"),w=function(e){return t[e.toLowerCase()]||p[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function i(e){o=e||"all"}function m(){return o||"all"}function O(e,t,n){var o=void 0;if(t.scope===n||"all"===t.scope){for(var r in o=0<t.mods.length,v)Object.prototype.hasOwnProperty.call(v,r)&&(!v[r]&&-1<t.mods.indexOf(+r)||v[r]&&-1===t.mods.indexOf(+r))&&(o=!1);(0!==t.mods.length||v[16]||v[18]||v[17]||v[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 b(e,t,n){var o=s(e),r=[],i="all",a=document,f=0;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element)),"string"==typeof t&&(i=t);f<o.length;f++)r=[],1<(e=o[f].split("+")).length&&(r=l(p,e)),(e="*"===(e=e[e.length-1])?"*":w(e))in g||(g[e]=[]),g[e].push({scope:i,mods:r,shortcut:o[f],method:n,key:o[f]});void 0===a||y||(y=!0,c(a,"keydown",function(e){!function(e){var t=g["*"],n=e.keyCode||e.which||e.charCode;if(-1===u.indexOf(n)&&u.push(n),93!==n&&224!==n||(n=91),n in v){for(var o in v[n]=!0,p)p[o]===n&&(b[o]=!0);if(!t)return}for(var r in v)Object.prototype.hasOwnProperty.call(v,r)&&(v[r]=e[h[r]]);if(b.filter.call(this,e)){var i=m();if(t)for(var a=0;a<t.length;a++)t[a].scope===i&&O(e,t[a],i);if(n in g)for(var f=0;f<g[n].length;f++)O(e,g[n][f],i)}}(e)}),c(a,"keyup",function(e){!function(e){var t=e.keyCode||e.which||e.charCode,n=u.indexOf(t);if(n<0||u.splice(n,1),93!==t&&224!==t||(t=91),t in v)for(var o in v[t]=!1,p)p[o]===t&&(b[o]=!1)}(e)}))}var r={setScope:i,getScope:m,deleteScope:function(e,t){var n=void 0,o=void 0;for(var r in e||(e=m()),g)if(Object.prototype.hasOwnProperty.call(g,r))for(n=g[r],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;m()===e&&i(t||"all")},getPressedKeyCodes:function(){return u.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=w(e)),-1!==u.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName;return!("INPUT"===n||"SELECT"===n||"TEXTAREA"===n||t.isContentEditable)},unbind:function(e,t,n){var o=s(e),r=void 0,i=[],a=void 0;"function"==typeof t&&(n=t,t="all");for(var f=0;f<o.length;f++){if(1<(r=o[f].split("+")).length&&(i=l(p,r)),e="*"===(e=r[r.length-1])?"*":w(e),t||(t=m()),!g[e])return;for(var c=0;c<g[e].length;c++){if(a=g[e][c],n&&a.method!==n)return;a.scope===t&&d(a.mods,i)&&(g[e][c]={})}}}};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(b[a]=r[a]);if("undefined"!=typeof window){var f=window.hotkeys;b.noConflict=function(e){return e&&window.hotkeys===b&&(window.hotkeys=f),b},window.hotkeys=b}return b});

@ -1 +1 @@
<html> <head> <meta charset="UTF-8"> <title>hotkeys.js - A robust Javascript library for capturing keyboard input.</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="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."> <link rel="stylesheet" href="website.aadaefce.css"></head> <body> <div id="root"></div> <script src="website.41120720.js"></script> </body> </html>
<html> <head> <meta charset="UTF-8"> <title>hotkeys.js - A robust Javascript library for capturing keyboard input.</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="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."> <link rel="stylesheet" href="website.96fbccfe.css"></head> <body> <div id="root"></div> <script src="website.e4841159.js"></script> </body> </html>

File diff suppressed because one or more lines are too long

@ -622,20 +622,30 @@ a._corner_1qg4o_1:hover ._octo-arm_1qg4o_17 {
._shields_1ds1m_1 a + a {
margin-left: 10px;
}
._version_itqqz_1 {
._version_12zto_1 {
position: absolute;
margin: 15px 0 0 15px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
cursor: pointer;
color: #182026;
padding: 3px 6px;
vertical-align: middle;
box-sizing: border-box;
border: none;
border-radius: 3px;
}
._keyCodeInfo_itqqz_5 {
._keyCodeInfo_12zto_13 {
position: fixed;
bottom: 10px;
left: 10px;
z-index: 9999;
}
._keyCodeInfo_itqqz_5 span + span {
._keyCodeInfo_12zto_13 span + span {
margin-left: 10px;
}
._keyCodeInfo_itqqz_5 span {
._keyCodeInfo_12zto_13 span {
display: inline-block;
background: #eff0f2;
border-radius: 3px;
@ -644,26 +654,26 @@ a._corner_1qg4o_1:hover ._octo-arm_1qg4o_17 {
box-shadow: inset 0 0 25px #e8e8e8, 0 1px 0 #c3c3c3, 0 2px 0 #c9c9c9, 0 2px 3px #333;
text-shadow: 0px 1px 0px #f5f5f5;
}
._header_itqqz_23 {
._header_12zto_31 {
background-color: #292929;
padding: 74px 0 60px 0;
}
._header_itqqz_23 ._title_itqqz_27 {
._header_12zto_31 ._title_12zto_35 {
text-align: center;
font-size: 53px;
font-weight: bold;
color: #fff;
text-shadow: -3px -3px 0 #676767, -3px -3px 0 #676767, -3px -3px 0 #676767, -2px -2px 0 #676767, -2px -2px 0 #676767, -1px -1px 0 #676767;
}
._header_itqqz_23 ._lang_itqqz_34 {
._header_12zto_31 ._lang_12zto_42 {
text-align: center;
padding-top: 20px;
}
._header_itqqz_23 ._lang_itqqz_34 a {
._header_12zto_31 ._lang_12zto_42 a {
color: #fff;
margin: 0 5px;
}
._header_itqqz_23 ._info_itqqz_42 {
._header_12zto_31 ._info_12zto_50 {
padding: 25px 0 27px 0;
text-align: center;
font-size: 23px;
@ -672,14 +682,14 @@ a._corner_1qg4o_1:hover ._octo-arm_1qg4o_17 {
max-width: 702px;
margin: 0 auto;
}
._header_itqqz_23 ._github_itqqz_51 {
._header_12zto_31 ._github_12zto_59 {
text-align: center;
padding: 60px 0 22px 0;
}
._header_itqqz_23 ._github_itqqz_51 a + a {
._header_12zto_31 ._github_12zto_59 a + a {
margin-left: 10px;
}
._header_itqqz_23 ._github_itqqz_51 button {
._header_12zto_31 ._github_12zto_59 button {
position: relative;
display: inline-block;
border: 1px solid #ddd;
@ -696,7 +706,7 @@ a._corner_1qg4o_1:hover ._octo-arm_1qg4o_17 {
background: whitesmoke;
background-image: linear-gradient(-90deg, whitesmoke 0%, #e5e5e5 100%);
}
._header_itqqz_23 ._github_itqqz_51 button:hover {
._header_12zto_31 ._github_12zto_59 button:hover {
color: #337797;
border: 1px solid #CBE3EE;
border-bottom-color: #97C7DD;

@ -53403,13 +53403,13 @@ var reloadCSS = require('_css_loader');
module.hot.dispose(reloadCSS);
module.hot.accept(reloadCSS);
module.exports = {
"version": "_version_itqqz_1",
"keyCodeInfo": "_keyCodeInfo_itqqz_5",
"header": "_header_itqqz_23",
"title": "_title_itqqz_27",
"lang": "_lang_itqqz_34",
"info": "_info_itqqz_42",
"github": "_github_itqqz_51"
"version": "_version_12zto_1",
"keyCodeInfo": "_keyCodeInfo_12zto_13",
"header": "_header_12zto_31",
"title": "_title_12zto_35",
"lang": "_lang_12zto_42",
"info": "_info_12zto_50",
"github": "_github_12zto_59"
};
},{"_css_loader":"../node_modules/parcel-bundler/src/builtins/css-loader.js"}],"../README.md":[function(require,module,exports) {
module.exports = `# Hotkeys
@ -53762,7 +53762,7 @@ $ npm run test:watch # Development model
`
},{}],"../dist/hotkeys.common.js":[function(require,module,exports) {
/*!
* hotkeys-js v3.4.2
* hotkeys-js v3.4.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -54177,6 +54177,74 @@ if (typeof window !== 'undefined') {
}
module.exports = hotkeys;
},{}],"../package.json":[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.4.3",
"main": "index.js",
"module": "dist/hotkeys.esm.js",
"scripts": {
"lint": "eslint --ext .js src website",
"deploy": "npm run doc:build && gh-pages -d doc",
"build": "node scripts/build.js",
"watch": "node scripts/watch.js",
"pretest": "npm run build",
"test": "npm run lint && 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": "NODE_ENV=production parcel build website/index.html --out-dir doc --public-url ./ --no-cache"
},
"husky": {
"hooks": {
"pre-commit": "npm run build && npm run lint"
}
},
"keywords": ["hotkey", "hotkeys", "hotkeys-js", "hotkeysjs", "key", "keys", "keyboard", "shortcuts", "keypress"],
"author": "kenny wong <wowohoo@qq.com>",
"license": "MIT",
"homepage": "http://jaywcjlove.github.io/hotkeys",
"repository": {
"type": "git",
"url": "https://github.com/jaywcjlove/hotkeys.git"
},
"dependencies": {},
"devDependencies": {
"autoprefixer": "^8.6.1",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"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.0.0-rc.8",
"jest": "^22.4.4",
"less": "^3.0.4",
"parcel-bundler": "^1.10.3",
"parcel-plugin-markdown-string": "^1.3.1",
"postcss-modules": "^1.1.0",
"puppeteer": "^1.5.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-markdown": "^3.3.2",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"uglify-js": "^3.4.0",
"zlib": "^1.0.5"
}
};
},{}],"App.js":[function(require,module,exports) {
"use strict";
@ -54203,6 +54271,8 @@ var _README = _interopRequireDefault(require("../README.md"));
var _hotkeys = _interopRequireDefault(require("../dist/hotkeys.common"));
var _package = _interopRequireDefault(require("../package.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
@ -54348,7 +54418,9 @@ function (_Component) {
onChange: this.openVersionWebsite.bind(this)
}, _react.default.createElement("option", {
value: "https://jaywcjlove.github.io/hotkeys"
}, "v3.0.0"), _react.default.createElement("option", {
}, "v", _package.default.version), _react.default.createElement("option", {
value: "https://unpkg.com/hotkeys-js@3.4.2/doc/index.html"
}, "v3.4.2"), _react.default.createElement("option", {
value: "https://unpkg.com/hotkeys-js@2.0.10/doc/index.html"
}, "v2.0.10")), keyStr.length > -1 && _react.default.createElement("div", {
className: _index.default.keyCodeInfo
@ -54404,7 +54476,7 @@ function (_Component) {
}(_react.Component);
exports.default = App;
},{"react":"../node_modules/react/index.js","./components/GithubCorner":"components/GithubCorner.js","./components/KeyBoard":"components/KeyBoard.js","./components/Footer":"components/Footer.js","./components/Markdown":"components/Markdown/index.js","./components/GithubShields":"components/GithubShields.js","./styles/index.less":"styles/index.less","../README.md":"../README.md","../dist/hotkeys.common":"../dist/hotkeys.common.js"}],"styles/reset.less":[function(require,module,exports) {
},{"react":"../node_modules/react/index.js","./components/GithubCorner":"components/GithubCorner.js","./components/KeyBoard":"components/KeyBoard.js","./components/Footer":"components/Footer.js","./components/Markdown":"components/Markdown/index.js","./components/GithubShields":"components/GithubShields.js","./styles/index.less":"styles/index.less","../README.md":"../README.md","../dist/hotkeys.common":"../dist/hotkeys.common.js","../package.json":"../package.json"}],"styles/reset.less":[function(require,module,exports) {
var reloadCSS = require('_css_loader');
module.hot.dispose(reloadCSS);
@ -54451,7 +54523,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "52728" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "55811" + '/');
ws.onmessage = function (event) {
var data = JSON.parse(event.data);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,7 +1,7 @@
{
"name": "hotkeys-js",
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
"version": "3.4.2",
"version": "3.4.3",
"main": "index.js",
"module": "dist/hotkeys.esm.js",
"scripts": {

@ -7,6 +7,7 @@ import GithubShields from './components/GithubShields';
import styles from './styles/index.less';
import DocumentStr from '../README.md';
import hotkeys from '../dist/hotkeys.common';
import pkg from '../package.json';
export default class App extends Component {
constructor() {
@ -83,7 +84,8 @@ export default class App extends Component {
return (
<div>
<select className={styles.version} onChange={this.openVersionWebsite.bind(this)}>
<option value="https://jaywcjlove.github.io/hotkeys">v3.0.0</option>
<option value="https://jaywcjlove.github.io/hotkeys">v{pkg.version}</option>
<option value="https://unpkg.com/hotkeys-js@3.4.2/doc/index.html">v3.4.2</option>
<option value="https://unpkg.com/hotkeys-js@2.0.10/doc/index.html">v2.0.10</option>
</select>
{keyStr.length > -1 && (

Loading…
Cancel
Save