Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-hot-keys

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hot-keys - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

215

dist/react-hotkeys.js

@@ -519,3 +519,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/*!
* hotkeys-js v3.6.10
* hotkeys-js v3.7.2
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.

@@ -529,2 +529,16 @@ *

function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件

@@ -555,3 +569,3 @@

function getKeys(key) {
if (!key) key = '';
if (typeof key !== 'string') key = '';
key = key.replace(/\s/g, ''); // 匹配任何空白字符,包括空格、制表符、换页符等等

@@ -586,3 +600,2 @@

var _keyMap = {
// 特殊键
backspace: 8,

@@ -621,16 +634,20 @@ tab: 9,

'\\': 220
};
}; // Modifier Keys
var _modifier = {
// 修饰键
// shiftKey
'⇧': 16,
shift: 16,
// altKey
'⌥': 18,
alt: 18,
option: 18,
// ctrlKey
'⌃': 17,
ctrl: 17,
control: 17,
'⌘': isff ? 224 : 91,
cmd: isff ? 224 : 91,
command: isff ? 224 : 91
// metaKey
'⌘': 91,
cmd: 91,
command: 91
};

@@ -640,3 +657,8 @@ var modifierMap = {

18: 'altKey',
17: 'ctrlKey'
17: 'ctrlKey',
91: 'metaKey',
shiftKey: 16,
ctrlKey: 17,
altKey: 18,
metaKey: 91
};

@@ -646,14 +668,11 @@ var _mods = {

18: false,
17: false
17: false,
91: false
};
var _handlers = {}; // F1~F12 特殊键
var _handlers = {}; // F1~F12 special key
for (var k = 1; k < 20; k++) {
_keyMap["f".concat(k)] = 111 + k;
} // 兼容Firefox处理
}
modifierMap[isff ? 224 : 91] = 'metaKey';
_mods[isff ? 224 : 91] = false;
var _downKeys = []; // 记录摁下的绑定键

@@ -755,49 +774,73 @@

}
} // 解除绑定某个范围的快捷键
}
function unbind(keysInfo) {
// unbind(), unbind all keys
if (!keysInfo) {
Object.keys(_handlers).forEach(function (key) {
return delete _handlers[key];
});
} else if (Array.isArray(keysInfo)) {
// support like : unbind([{key: 'ctrl+a', scope: 's1'}, {key: 'ctrl-a', scope: 's2', splitKey: '-'}])
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
function unbind(key, scope, method) {
var multipleKeys = getKeys(key);
var keys;
var mods = [];
var obj; // 通过函数判断,是否解除绑定
// https://github.com/jaywcjlove/hotkeys/issues/44
// support old method
// eslint-disable-line
var scope = args[0],
method = args[1];
if (typeof scope === 'function') {
method = scope;
scope = 'all';
if (typeof scope === 'function') {
method = scope;
scope = '';
}
eachUnbind({
key: keysInfo,
scope: scope,
method: method,
splitKey: '+'
});
}
} // 解除绑定某个范围的快捷键
for (var i = 0; i < multipleKeys.length; i++) {
// 将组合快捷键拆分为数组
keys = multipleKeys[i].split('+'); // 记录每个组合键中的修饰键的键码 返回数组
if (keys.length > 1) {
mods = getMods(_modifier, keys);
} else {
mods = [];
} // 获取除修饰键外的键值key
var eachUnbind = function eachUnbind(_ref) {
var key = _ref.key,
scope = _ref.scope,
method = _ref.method,
_ref$splitKey = _ref.splitKey,
splitKey = _ref$splitKey === void 0 ? '+' : _ref$splitKey;
var multipleKeys = getKeys(key);
multipleKeys.forEach(function (originKey) {
var unbindKeys = originKey.split(splitKey);
var len = unbindKeys.length;
var lastKey = unbindKeys[len - 1];
var keyCode = lastKey === '*' ? '*' : code(lastKey);
if (!_handlers[keyCode]) return; // 判断是否传入范围,没有就获取范围
if (!scope) scope = getScope();
var mods = len > 1 ? getMods(_modifier, unbindKeys) : [];
_handlers[keyCode] = _handlers[keyCode].map(function (record) {
// 通过函数判断,是否解除绑定,函数相等直接返回
var isMatchingMethod = method ? record.method === method : true;
key = keys[keys.length - 1];
key = key === '*' ? '*' : code(key); // 判断是否传入范围,没有就获取范围
if (isMatchingMethod && record.scope === scope && compareArray(record.mods, mods)) {
return {};
}
if (!scope) scope = getScope(); // 如何key不在 _handlers 中返回不做处理
return record;
});
});
}; // 对监听对应快捷键的回调函数进行处理
if (!_handlers[key]) return; // 清空 handlers 中数据,
// 让触发快捷键键之后没有事件执行到达解除快捷键绑定的目的
for (var r = 0; r < _handlers[key].length; r++) {
obj = _handlers[key][r]; // 通过函数判断,是否解除绑定,函数相等直接返回
var isMatchingMethod = method ? obj.method === method : true; // 判断是否在范围内并且键值相同
if (isMatchingMethod && obj.scope === scope && compareArray(obj.mods, mods)) {
_handlers[key][r] = {};
}
}
}
} // 对监听对应快捷键的回调函数进行处理
function eventHandler(event, handler, scope) {

@@ -812,3 +855,5 @@ var modifiersMatch; // 看它是否在当前范围

if (Object.prototype.hasOwnProperty.call(_mods, y)) {
if (!_mods[y] && handler.mods.indexOf(+y) > -1 || _mods[y] && handler.mods.indexOf(+y) === -1) modifiersMatch = false;
if (!_mods[y] && handler.mods.indexOf(+y) > -1 || _mods[y] && handler.mods.indexOf(+y) === -1) {
modifiersMatch = false;
}
}

@@ -833,12 +878,32 @@ } // 调用处理程序,如果是修饰键不做处理

if (!hotkeys.filter.call(this, event)) return; // Collect bound keys
// If an Input Method Editor is processing key input and the event is keydown, return 229.
// https://stackoverflow.com/questions/25043934/is-it-ok-to-ignore-keydown-events-with-keycode-229
// http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
if (!hotkeys.filter.call(this, event)) return; // Gecko(Firefox)的command键值224,在Webkit(Chrome)中保持一致
// Webkit左右 command 键值不一样
if (_downKeys.indexOf(key) === -1 && key !== 229) _downKeys.push(key); // Gecko(Firefox)的command键值224,在Webkit(Chrome)中保持一致
// Webkit左右command键值不一样
if (key === 93 || key === 224) key = 91;
/**
* Collect bound keys
* If an Input Method Editor is processing key input and the event is keydown, return 229.
* https://stackoverflow.com/questions/25043934/is-it-ok-to-ignore-keydown-events-with-keycode-229
* http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
*/
if (_downKeys.indexOf(key) === -1 && key !== 229) _downKeys.push(key);
/**
* Jest test cases are required.
* ===============================
*/
['ctrlKey', 'altKey', 'shiftKey', 'metaKey'].forEach(function (keyName) {
var keyNum = modifierMap[keyName];
if (event[keyName] && _downKeys.indexOf(keyNum) === -1) {
_downKeys.push(keyNum);
} else if (!event[keyName] && _downKeys.indexOf(keyNum) > -1) {
_downKeys.splice(_downKeys.indexOf(keyNum), 1);
}
});
/**
* -------------------------------
*/
if (key in _mods) {

@@ -852,3 +917,3 @@ _mods[key] = true; // 将特殊字符的key注册到 hotkeys 上

if (!asterisk) return;
} // 将modifierMap里面的修饰键绑定到event中
} // 将 modifierMap 里面的修饰键绑定到 event 中

@@ -860,3 +925,3 @@

}
} // 获取范围 默认为all
} // 获取范围 默认为 `all`

@@ -872,3 +937,3 @@

}
} // key 不在_handlers中返回
} // key 不在 _handlers 中返回

@@ -881,4 +946,5 @@

if (_handlers[key][_i].key) {
var keyShortcut = _handlers[key][_i].key.split('+');
var record = _handlers[key][_i];
var splitKey = record.splitKey;
var keyShortcut = record.key.split(splitKey);
var _downKeysCurrent = []; // 记录当前按键键值

@@ -890,7 +956,5 @@

_downKeysCurrent = _downKeysCurrent.sort();
if (_downKeysCurrent.join('') === _downKeys.sort().join('')) {
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
// 找到处理内容
eventHandler(event, _handlers[key][_i], scope);
eventHandler(event, record, scope);
}

@@ -908,2 +972,3 @@ }

function hotkeys(key, option, method) {
_downKeys = [];
var keys = getKeys(key); // 需要处理的快捷键列表

@@ -918,3 +983,4 @@

var keyup = false;
var keydown = true; // 对为设定范围的判断
var keydown = true;
var splitKey = '+'; // 对为设定范围的判断

@@ -932,3 +998,5 @@ if (method === undefined && typeof option === 'function') {

if (option.keydown) keydown = option.keydown; // eslint-disable-line
if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line
if (typeof option.splitKey === 'string') splitKey = option.splitKey; // eslint-disable-line
}

@@ -939,3 +1007,3 @@

for (; i < keys.length; i++) {
key = keys[i].split('+'); // 按键列表
key = keys[i].split(splitKey); // 按键列表

@@ -959,3 +1027,4 @@ mods = []; // 如果是组合快捷键取得组合快捷键

method: method,
key: keys[i]
key: keys[i],
splitKey: splitKey
});

@@ -962,0 +1031,0 @@ } // 在全局document上设置快捷键

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactHotkeys=t(require("react")):e.ReactHotkeys=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=r.__importDefault(n(2)),i=r.__importStar(n(3)),u=r.__importDefault(n(6));class a extends o.default.Component{constructor(e){super(e),this.isKeyDown=!1,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){const{filter:e}=this.props;e&&(u.default.filter=e),u.default.unbind(this.props.keyName),u.default(this.props.keyName,this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){u.default.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(e,t){const{onKeyUp:n,disabled:r}=this.props;!r&&n&&n(t.shortcut,e,t)}onKeyDown(e,t){const{onKeyDown:n,allowRepeat:r,disabled:o}=this.props;this.isKeyDown&&!r||(this.isKeyDown=!0,this.handle=t,!o&&n&&n(t.shortcut,e,t))}handleKeyUpEvent(e){this.isKeyDown&&(this.isKeyDown=!1,this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0||(this.onKeyUp(e,this.handle),this.handle={}))}render(){return this.props.children||null}}a.defaultProps={filter(e){const t=e.target||e.srcElement;var n=t.tagName;return!(t.isContentEditable||"INPUT"==n||"SELECT"==n||"TEXTAREA"==n)}},a.propTypes={keyName:i.string,filter:i.func,onKeyDown:i.func,onKeyUp:i.func,disabled:i.bool},t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return u}),n.d(t,"__decorate",function(){return a}),n.d(t,"__param",function(){return c}),n.d(t,"__metadata",function(){return f}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return s}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return y}),n.d(t,"__spread",function(){return h}),n.d(t,"__spreadArrays",function(){return v}),n.d(t,"__await",function(){return b}),n.d(t,"__asyncGenerator",function(){return w}),n.d(t,"__asyncDelegator",function(){return m}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return g}),n.d(t,"__importStar",function(){return O}),n.d(t,"__importDefault",function(){return k});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactHotkeys=t(require("react")):e.ReactHotkeys=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1),o=r.__importDefault(n(2)),i=r.__importStar(n(3)),u=r.__importDefault(n(6));class a extends o.default.Component{constructor(e){super(e),this.isKeyDown=!1,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){const{filter:e}=this.props;e&&(u.default.filter=e),u.default.unbind(this.props.keyName),u.default(this.props.keyName,this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){u.default.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(e,t){const{onKeyUp:n,disabled:r}=this.props;!r&&n&&n(t.shortcut,e,t)}onKeyDown(e,t){const{onKeyDown:n,allowRepeat:r,disabled:o}=this.props;this.isKeyDown&&!r||(this.isKeyDown=!0,this.handle=t,!o&&n&&n(t.shortcut,e,t))}handleKeyUpEvent(e){this.isKeyDown&&(this.isKeyDown=!1,this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0||(this.onKeyUp(e,this.handle),this.handle={}))}render(){return this.props.children||null}}a.defaultProps={filter(e){const t=e.target||e.srcElement;var n=t.tagName;return!(t.isContentEditable||"INPUT"==n||"SELECT"==n||"TEXTAREA"==n)}},a.propTypes={keyName:i.string,filter:i.func,onKeyDown:i.func,onKeyUp:i.func,disabled:i.bool},t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return u}),n.d(t,"__decorate",function(){return a}),n.d(t,"__param",function(){return c}),n.d(t,"__metadata",function(){return f}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return s}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return y}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return h}),n.d(t,"__spreadArrays",function(){return v}),n.d(t,"__await",function(){return b}),n.d(t,"__asyncGenerator",function(){return m}),n.d(t,"__asyncDelegator",function(){return w}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return g}),n.d(t,"__importStar",function(){return O}),n.d(t,"__importDefault",function(){return k});
/*! *****************************************************************************

@@ -16,5 +16,5 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(u,a)}c((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,f):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function m(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}},function(t,n){t.exports=e},function(e,t,n){e.exports=n(4)()},function(e,t,n){"use strict";var r=n(5);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,u){if(u!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){var o,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(u,a)}c((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function y(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function m(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,f):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}function g(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}},function(t,n){t.exports=e},function(e,t,n){e.exports=n(4)()},function(e,t,n){"use strict";var r=n(5);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,u){if(u!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/*!
* hotkeys-js v3.6.10
* hotkeys-js v3.7.2
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.

@@ -27,2 +27,2 @@ *

*/
var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(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),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function u(e){e||(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function a(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}for(var c={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,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},f={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":r?224:91,cmd:r?224:91,command:r?224:91},l={16:"shiftKey",18:"altKey",17:"ctrlKey"},s={16:!1,18:!1,17:!1},p={},d=1;d<20;d++)c["f".concat(d)]=111+d;l[r?224:91]="metaKey",s[r?224:91]=!1;var y=[],h="all",v=[],b=function(e){return c[e.toLowerCase()]||f[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function w(e){h=e||"all"}function m(){return h||"all"}function _(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var o in r=t.mods.length>0,s)Object.prototype.hasOwnProperty.call(s,o)&&(!s[o]&&t.mods.indexOf(+o)>-1||s[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||s[16]||s[18]||s[17]||s[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function g(e){var t=p["*"],n=e.keyCode||e.which||e.charCode;if(O.filter.call(this,e)){if(-1===y.indexOf(n)&&229!==n&&y.push(n),93!==n&&224!==n||(n=91),n in s){for(var r in s[n]=!0,f)f[r]===n&&(O[r]=!0);if(!t)return}for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(s[o]=e[l[o]]);var i=m();if(t)for(var u=0;u<t.length;u++)t[u].scope===i&&("keydown"===e.type&&t[u].keydown||"keyup"===e.type&&t[u].keyup)&&_(e,t[u],i);if(n in p)for(var a=0;a<p[n].length;a++)if(("keydown"===e.type&&p[n][a].keydown||"keyup"===e.type&&p[n][a].keyup)&&p[n][a].key){for(var c=p[n][a].key.split("+"),d=[],h=0;h<c.length;h++)d.push(b(c[h]));(d=d.sort()).join("")===y.sort().join("")&&_(e,p[n][a],i)}}}function O(e,t,n){var r=u(e),a=[],c="all",l=document,d=0,h=!1,w=!0;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(c=t.scope),t.element&&(l=t.element),t.keyup&&(h=t.keyup),t.keydown&&(w=t.keydown)),"string"==typeof t&&(c=t);d<r.length;d++)a=[],(e=r[d].split("+")).length>1&&(a=i(f,e)),(e="*"===(e=e[e.length-1])?"*":b(e))in p||(p[e]=[]),p[e].push({keyup:h,keydown:w,scope:c,mods:a,shortcut:r[d],method:n,key:r[d]});void 0!==l&&!function(e){return v.indexOf(e)>-1}(l)&&window&&(v.push(l),o(l,"keydown",function(e){g(e)}),o(window,"focus",function(){y=[]}),o(l,"keyup",function(e){g(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 s)for(var r in s[t]=!1,f)f[r]===t&&(O[r]=!1)}(e)}))}var k={setScope:w,getScope:m,deleteScope:function(e,t){var n,r;for(var o in e||(e=m()),p)if(Object.prototype.hasOwnProperty.call(p,o))for(n=p[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;m()===e&&w(t||"all")},getPressedKeyCodes:function(){return y.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=b(e)),-1!==y.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&"TEXTAREA"!==n&&("INPUT"!==n&&"TEXTAREA"!==n||t.readOnly)||(r=!1),r},unbind:function(e,t,n){var r,o,c=u(e),l=[];"function"==typeof t&&(n=t,t="all");for(var s=0;s<c.length;s++){if(l=(r=c[s].split("+")).length>1?i(f,r):[],e="*"===(e=r[r.length-1])?"*":b(e),t||(t=m()),!p[e])return;for(var d=0;d<p[e].length;d++)o=p[e][d],(!n||o.method===n)&&o.scope===t&&a(o.mods,l)&&(p[e][d]={})}}};for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(O[x]=k[x]);if("undefined"!=typeof window){var P=window.hotkeys;O.noConflict=function(e){return e&&window.hotkeys===O&&(window.hotkeys=P),O},window.hotkeys=O}t.default=O}])});
function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.r(t);var o="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function i(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function u(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function a(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var c={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,"⇪":20,",":188,".":190,"/":191,"`":192,"-":o?173:189,"=":o?61:187,";":o?59:186,"'":222,"[":219,"]":221,"\\":220},f={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},l={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},p={},y=1;y<20;y++)c["f".concat(y)]=111+y;var d=[],h="all",v=[],b=function(e){return c[e.toLowerCase()]||f[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function m(e){h=e||"all"}function w(){return h||"all"}var _=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,i=void 0===o?"+":o;a(t).forEach(function(e){var t=e.split(i),o=t.length,a=t[o-1],c="*"===a?"*":b(a);if(p[c]){n||(n=w());var l=o>1?u(f,t):[];p[c]=p[c].map(function(e){return(!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}(e.mods,l)?{}:e})}})};function g(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var o in r=t.mods.length>0,s)Object.prototype.hasOwnProperty.call(s,o)&&(!s[o]&&t.mods.indexOf(+o)>-1||s[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||s[16]||s[18]||s[17]||s[91])&&!r&&"*"!==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=p["*"],n=e.keyCode||e.which||e.charCode;if(k.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=l[t];e[t]&&-1===d.indexOf(n)?d.push(n):!e[t]&&d.indexOf(n)>-1&&d.splice(d.indexOf(n),1)}),n in s){for(var r in s[n]=!0,f)f[r]===n&&(k[r]=!0);if(!t)return}for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(s[o]=e[l[o]]);var i=w();if(t)for(var u=0;u<t.length;u++)t[u].scope===i&&("keydown"===e.type&&t[u].keydown||"keyup"===e.type&&t[u].keyup)&&g(e,t[u],i);if(n in p)for(var a=0;a<p[n].length;a++)if(("keydown"===e.type&&p[n][a].keydown||"keyup"===e.type&&p[n][a].keyup)&&p[n][a].key){for(var c=p[n][a],y=c.splitKey,h=c.key.split(y),v=[],m=0;m<h.length;m++)v.push(b(h[m]));v.sort().join("")===d.sort().join("")&&g(e,c,i)}}}function k(e,t,n){d=[];var r=a(e),o=[],c="all",l=document,y=0,h=!1,m=!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&&(l=t.element),t.keyup&&(h=t.keyup),void 0!==t.keydown&&(m=t.keydown),"string"==typeof t.splitKey&&(w=t.splitKey)),"string"==typeof t&&(c=t);y<r.length;y++)o=[],(e=r[y].split(w)).length>1&&(o=u(f,e)),(e="*"===(e=e[e.length-1])?"*":b(e))in p||(p[e]=[]),p[e].push({keyup:h,keydown:m,scope:c,mods:o,shortcut:r[y],method:n,key:r[y],splitKey:w});void 0!==l&&!function(e){return v.indexOf(e)>-1}(l)&&window&&(v.push(l),i(l,"keydown",function(e){O(e)}),i(window,"focus",function(){d=[]}),i(l,"keyup",function(e){O(e),function(e){var t=e.keyCode||e.which||e.charCode,n=d.indexOf(t);if(n>=0&&d.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&d.splice(0,d.length),93!==t&&224!==t||(t=91),t in s)for(var r in s[t]=!1,f)f[r]===t&&(k[r]=!1)}(e)}))}var x={setScope:m,getScope:w,deleteScope:function(e,t){var n,r;for(var o in e||(e=w()),p)if(Object.prototype.hasOwnProperty.call(p,o))for(n=p[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;w()===e&&m(t||"all")},getPressedKeyCodes:function(){return d.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=b(e)),-1!==d.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&"TEXTAREA"!==n&&("INPUT"!==n&&"TEXTAREA"!==n||t.readOnly)||(r=!1),r},unbind:function(e){if(e){if(Array.isArray(e))e.forEach(function(e){e.key&&_(e)});else if("object"===r(e))e.key&&_(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=n[0],u=n[1];"function"==typeof i&&(u=i,i=""),_({key:e,scope:i,method:u,splitKey:"+"})}}else Object.keys(p).forEach(function(e){return delete p[e]})}};for(var K in x)Object.prototype.hasOwnProperty.call(x,K)&&(k[K]=x[K]);if("undefined"!=typeof window){var j=window.hotkeys;k.noConflict=function(e){return e&&window.hotkeys===k&&(window.hotkeys=j),k},window.hotkeys=k}t.default=k}])});
{
"name": "react-hot-keys",
"version": "2.2.0",
"version": "2.3.0",
"description": "React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.",

@@ -54,2 +54,3 @@ "author": "kenny wang <wowohoo@qq.com>",

"@types/react-dom": "^16.8.4",
"classnames": "^2.2.6",
"enzyme": "^3.10.0",

@@ -60,3 +61,3 @@ "enzyme-adapter-react-16": "^1.14.0",

"less": "^3.9.0",
"parcel-bundler": "^1.12.3",
"parcel-bundler": "^1.12.4",
"react": "^16.8.6",

@@ -69,5 +70,5 @@ "react-dom": "^16.8.6",

"@babel/runtime": "^7.4.5",
"classnames": "^2.2.6",
"hotkeys-js": "^3.6.11"
"hotkeys-js": "^3.7.2",
"prop-types": "^15.7.2"
}
}

@@ -98,2 +98,9 @@ react-hotkeys

### disabled
> disabled?: boolean;
Disable `onKeyDown` and `onKeyUp` events. Default: `undefined`
### filter

@@ -100,0 +107,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc