released v3.6.3

pull/69/head v3.6.3
jaywcjlove 6 years ago
parent 08548d354f
commit 608333db75

@ -2,7 +2,7 @@
[![](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/sb](https://jaywcjlove.github.io/sb/lang/english.svg)](./README.md)
这是一个强健的 Javascript 库用于捕获键盘输入和输入的组合键,它没有依赖,压缩只有(~3kb)gzip:1.9k。[官方文档DEMO预览](http://jaywcjlove.github.io/hotkeys/?lang=cn)
这是一个强健的 Javascript 库用于捕获键盘输入和输入的组合键,它没有依赖,压缩只有(~3kb)gzip:1.9k。[官方文档DEMO预览](http://jaywcjlove.github.io/hotkeys/?lang=cn)[更多实例](https://github.com/jaywcjlove/hotkeys/issues?q=label%3ADemo+).
```shell
@ -206,6 +206,8 @@ hotkeys('*','wcj', function(e){
- `scope<String>`
- `element<HTMLElement>`
- `keyup<Boolean>`
- `keydown<Boolean>`
```js
hotkeys('o, enter', {

@ -4,7 +4,7 @@
[![](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/sb](https://jaywcjlove.github.io/sb/lang/chinese.svg)](./README-zh.md)
HotKeys.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).
HotKeys.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+).
```shell
╭┈┈╮ ╭┈┈╮ ╭┈┈╮
@ -172,6 +172,7 @@ hotkeys('*','wcj', function(e){
- `scope<String>`
- `element<HTMLElement>`
- `keyup<Boolean>`
- `keydown<Boolean>`
```js
hotkeys('o, enter', {

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.6.2
* hotkeys-js v3.6.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -332,7 +332,7 @@ function dispatch(event) {
if (!(key in _handlers)) return;
for (var _i = 0; _i < _handlers[key].length; _i++) {
if (event.type === 'keydown' && !_handlers[key][_i].keyup || event.type === 'keyup' && _handlers[key][_i].keyup) {
if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
if (_handlers[key][_i].key) {
var keyShortcut = _handlers[key][_i].key.split('+');
var _downKeysCurrent = []; // 记录当前按键键值
@ -355,6 +355,8 @@ function hotkeys(key, option, method) {
var scope = 'all'; // scope默认为all所有范围都有效
var element = document; // 快捷键事件绑定节点
var i = 0;
var keyup = false;
var keydown = true;
// 对为设定范围的判断
if (method === undefined && typeof option === 'function') {
@ -363,7 +365,9 @@ function hotkeys(key, option, method) {
if (Object.prototype.toString.call(option) === '[object Object]') {
if (option.scope) scope = option.scope; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
if (option.keyup) keyup = option.keyup; // eslint-disable-line
if (option.keydown) keydown = option.keydown; // eslint-disable-line
}
if (typeof option === 'string') scope = option;
@ -383,7 +387,8 @@ function hotkeys(key, option, method) {
// 判断key是否在_handlers中不在就赋一个空数组
if (!(key in _handlers)) _handlers[key] = [];
_handlers[key].push({
keyup: option.keyup,
keyup: keyup,
keydown: keydown,
scope: scope,
mods: mods,
shortcut: keys[i],
@ -394,13 +399,17 @@ function hotkeys(key, option, method) {
// 在全局document上设置快捷键
if (typeof element !== 'undefined' && !isBindElement) {
isBindElement = true;
addEvent(element, 'keydown', function (e) {
dispatch(e);
});
addEvent(element, 'keyup', function (e) {
dispatch(e);
clearModifier(e);
});
if (keydown) {
addEvent(element, 'keydown', function (e) {
dispatch(e);
});
}
if (keyup) {
addEvent(element, 'keyup', function (e) {
dispatch(e);
clearModifier(e);
});
}
}
}

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.6.2
* hotkeys-js v3.6.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -330,7 +330,7 @@ function dispatch(event) {
if (!(key in _handlers)) return;
for (var _i = 0; _i < _handlers[key].length; _i++) {
if (event.type === 'keydown' && !_handlers[key][_i].keyup || event.type === 'keyup' && _handlers[key][_i].keyup) {
if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
if (_handlers[key][_i].key) {
var keyShortcut = _handlers[key][_i].key.split('+');
var _downKeysCurrent = []; // 记录当前按键键值
@ -353,6 +353,8 @@ function hotkeys(key, option, method) {
var scope = 'all'; // scope默认为all所有范围都有效
var element = document; // 快捷键事件绑定节点
var i = 0;
var keyup = false;
var keydown = true;
// 对为设定范围的判断
if (method === undefined && typeof option === 'function') {
@ -361,7 +363,9 @@ function hotkeys(key, option, method) {
if (Object.prototype.toString.call(option) === '[object Object]') {
if (option.scope) scope = option.scope; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
if (option.keyup) keyup = option.keyup; // eslint-disable-line
if (option.keydown) keydown = option.keydown; // eslint-disable-line
}
if (typeof option === 'string') scope = option;
@ -381,7 +385,8 @@ function hotkeys(key, option, method) {
// 判断key是否在_handlers中不在就赋一个空数组
if (!(key in _handlers)) _handlers[key] = [];
_handlers[key].push({
keyup: option.keyup,
keyup: keyup,
keydown: keydown,
scope: scope,
mods: mods,
shortcut: keys[i],
@ -392,13 +397,17 @@ function hotkeys(key, option, method) {
// 在全局document上设置快捷键
if (typeof element !== 'undefined' && !isBindElement) {
isBindElement = true;
addEvent(element, 'keydown', function (e) {
dispatch(e);
});
addEvent(element, 'keyup', function (e) {
dispatch(e);
clearModifier(e);
});
if (keydown) {
addEvent(element, 'keydown', function (e) {
dispatch(e);
});
}
if (keyup) {
addEvent(element, 'keyup', function (e) {
dispatch(e);
clearModifier(e);
});
}
}
}

31
dist/hotkeys.js vendored

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.6.2
* hotkeys-js v3.6.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -336,7 +336,7 @@
if (!(key in _handlers)) return;
for (var _i = 0; _i < _handlers[key].length; _i++) {
if (event.type === 'keydown' && !_handlers[key][_i].keyup || event.type === 'keyup' && _handlers[key][_i].keyup) {
if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
if (_handlers[key][_i].key) {
var keyShortcut = _handlers[key][_i].key.split('+');
var _downKeysCurrent = []; // 记录当前按键键值
@ -359,6 +359,8 @@
var scope = 'all'; // scope默认为all所有范围都有效
var element = document; // 快捷键事件绑定节点
var i = 0;
var keyup = false;
var keydown = true;
// 对为设定范围的判断
if (method === undefined && typeof option === 'function') {
@ -367,7 +369,9 @@
if (Object.prototype.toString.call(option) === '[object Object]') {
if (option.scope) scope = option.scope; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
if (option.keyup) keyup = option.keyup; // eslint-disable-line
if (option.keydown) keydown = option.keydown; // eslint-disable-line
}
if (typeof option === 'string') scope = option;
@ -387,7 +391,8 @@
// 判断key是否在_handlers中不在就赋一个空数组
if (!(key in _handlers)) _handlers[key] = [];
_handlers[key].push({
keyup: option.keyup,
keyup: keyup,
keydown: keydown,
scope: scope,
mods: mods,
shortcut: keys[i],
@ -398,13 +403,17 @@
// 在全局document上设置快捷键
if (typeof element !== 'undefined' && !isBindElement) {
isBindElement = true;
addEvent(element, 'keydown', function (e) {
dispatch(e);
});
addEvent(element, 'keyup', function (e) {
dispatch(e);
clearModifier(e);
});
if (keydown) {
addEvent(element, 'keydown', function (e) {
dispatch(e);
});
}
if (keyup) {
addEvent(element, 'keyup', function (e) {
dispatch(e);
clearModifier(e);
});
}
}
}

@ -1,2 +1,2 @@
/*! hotkeys-js v3.6.2 | 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 p(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},d={"\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"},y={16:!1,18:!1,17:!1},v={},n=1;n<20;n++)t["f"+n]=111+n;var o="all",g=y[e?224:91]=!(h[e?224:91]="metaKey"),w=function(e){return t[e.toLowerCase()]||d[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function i(e){o=e||"all"}function k(){return o||"all"}function m(e,t,n){var o=void 0;if(t.scope===n||"all"===t.scope){for(var r in o=0<t.mods.length,y)Object.prototype.hasOwnProperty.call(y,r)&&(!y[r]&&-1<t.mods.indexOf(+r)||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 O(e){var t=v["*"],n=e.keyCode||e.which||e.charCode;if(-1==u.indexOf(n)&&u.push(n),93!==n&&224!==n||(n=91),n in y){for(var o in y[n]=!0,d)d[o]===n&&(b[o]=!0);if(!t)return}for(var r in y)Object.prototype.hasOwnProperty.call(y,r)&&(y[r]=e[h[r]]);if(b.filter.call(this,e)){var i=k();if(t)for(var a=0;a<t.length;a++)t[a].scope===i&&("keydown"===e.type&&!t[a].keyup||"keyup"===e.type&&t[a].keyup)&&m(e,t[a],i);if(n in v)for(var f=0;f<v[n].length;f++)if(("keydown"===e.type&&!v[n][f].keyup||"keyup"===e.type&&v[n][f].keyup)&&v[n][f].key){for(var c=v[n][f].key.split("+"),l=[],s=0;s<c.length;s++)l.push(w(c[s]));(l=l.sort()).join("")===u.sort().join("")&&m(e,v[n][f],i)}}}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(d,e)),(e="*"===(e=e[e.length-1])?"*":w(e))in v||(v[e]=[]),v[e].push({keyup:t.keyup,scope:i,mods:r,shortcut:o[f],method:n,key:o[f]});void 0===a||g||(g=!0,c(a,"keydown",function(e){O(e)}),c(a,"keyup",function(e){O(e),function(e){var t=e.keyCode||e.which||e.charCode,n=u.indexOf(t);if(n<0||u.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&u.splice(0,u.length),93!==t&&224!==t||(t=91),t in y)for(var o in y[t]=!1,d)d[o]===t&&(b[o]=!1)}(e)}))}var r={setScope:i,getScope:k,deleteScope:function(e,t){var n=void 0,o=void 0;for(var r in e||(e=k()),v)if(Object.prototype.hasOwnProperty.call(v,r))for(n=v[r],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;k()===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(d,r)),e="*"===(e=r[r.length-1])?"*":w(e),t||(t=k()),!v[e])return;for(var c=0;c<v[e].length;c++)a=v[e][c],(!n||a.method===n)&&a.scope===t&&p(a.mods,i)&&(v[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});
/*! hotkeys-js v3.6.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 s(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,function(){n(window.event)})}function p(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 d(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 l(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},u={"\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},y=[],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",w=v[e?224:91]=!(h[e?224:91]="metaKey"),k=function(e){return t[e.toLowerCase()]||u[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){var t=g["*"],n=e.keyCode||e.which||e.charCode;if(-1==y.indexOf(n)&&y.push(n),93!==n&&224!==n||(n=91),n in v){for(var o in v[n]=!0,u)u[o]===n&&(C[o]=!0);if(!t)return}for(var r in v)Object.prototype.hasOwnProperty.call(v,r)&&(v[r]=e[h[r]]);if(C.filter.call(this,e)){var i=m();if(t)for(var a=0;a<t.length;a++)t[a].scope===i&&("keydown"===e.type&&!t[a].keyup||"keyup"===e.type&&t[a].keyup)&&O(e,t[a],i);if(n in g)for(var f=0;f<g[n].length;f++)if(("keydown"===e.type&&g[n][f].keydown||"keyup"===e.type&&g[n][f].keyup)&&g[n][f].key){for(var c=g[n][f].key.split("+"),l=[],s=0;s<c.length;s++)l.push(k(c[s]));(l=l.sort()).join("")===y.sort().join("")&&O(e,g[n][f],i)}}}function C(e,t,n){var o=d(e),r=[],i="all",a=document,f=0,c=!1,l=!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),t.keyup&&(c=t.keyup),t.keydown&&(l=t.keydown)),"string"==typeof t&&(i=t);f<o.length;f++)r=[],1<(e=o[f].split("+")).length&&(r=p(u,e)),(e="*"===(e=e[e.length-1])?"*":k(e))in g||(g[e]=[]),g[e].push({keyup:c,keydown:l,scope:i,mods:r,shortcut:o[f],method:n,key:o[f]});void 0===a||w||(w=!0,l&&s(a,"keydown",function(e){b(e)}),c&&s(a,"keyup",function(e){b(e),function(e){var t=e.keyCode||e.which||e.charCode,n=y.indexOf(t);if(n<0||y.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&y.splice(0,y.length),93!==t&&224!==t||(t=91),t in v)for(var o in v[t]=!1,u)u[o]===t&&(C[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 y.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=k(e)),-1!=y.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=d(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=p(u,r)),e="*"===(e=r[r.length-1])?"*":k(e),t||(t=m()),!g[e])return;for(var c=0;c<g[e].length;c++)a=g[e][c],(!n||a.method===n)&&a.scope===t&&l(a.mods,i)&&(g[e][c]={})}}};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(C[a]=r[a]);if("undefined"!=typeof window){var f=window.hotkeys;C.noConflict=function(e){return e&&window.hotkeys===C&&(window.hotkeys=f),C},window.hotkeys=C}return C});

@ -1,13 +1,13 @@
{
"name": "hotkeys-js",
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
"version": "3.6.2",
"version": "3.6.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": "npm run doc:build && node scripts/build.js",
"build": "node scripts/build.js && npm run doc:build",
"watch": "node scripts/watch.js",
"pretest": "npm run build",
"test": "jest --coverage",

Loading…
Cancel
Save