diff --git a/dist/hotkeys.common.js b/dist/hotkeys.common.js index 479faec..ca51a42 100644 --- a/dist/hotkeys.common.js +++ b/dist/hotkeys.common.js @@ -1,5 +1,5 @@ /*! - * hotkeys-js v3.6.12 + * hotkeys-js v3.6.13 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * * Copyright (c) 2019 kenny wong @@ -397,7 +397,7 @@ function hotkeys(key, option, method) { if (option.keyup) keyup = option.keyup; // eslint-disable-line - if (option.keydown) keydown = option.keydown; // eslint-disable-line + if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line } if (typeof option === 'string') scope = option; // 对于每个快捷键进行处理 diff --git a/dist/hotkeys.common.min.js b/dist/hotkeys.common.min.js index a4a7131..3cc0e4e 100644 --- a/dist/hotkeys.common.min.js +++ b/dist/hotkeys.common.min.js @@ -1,2 +1,2 @@ -/*! hotkeys-js v3.6.12 | MIT (c) 2019 kenny wong | http://jaywcjlove.github.io/hotkeys */ -"use strict";var isff="undefined"!=typeof navigator&&0 | http://jaywcjlove.github.io/hotkeys */ +"use strict";var isff="undefined"!=typeof navigator&&0 @@ -395,7 +395,7 @@ function hotkeys(key, option, method) { if (option.keyup) keyup = option.keyup; // eslint-disable-line - if (option.keydown) keydown = option.keydown; // eslint-disable-line + if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line } if (typeof option === 'string') scope = option; // 对于每个快捷键进行处理 diff --git a/dist/hotkeys.js b/dist/hotkeys.js index d4f5450..a23e78a 100644 --- a/dist/hotkeys.js +++ b/dist/hotkeys.js @@ -1,5 +1,5 @@ /*! - * hotkeys-js v3.6.12 + * hotkeys-js v3.6.13 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * * Copyright (c) 2019 kenny wong @@ -401,7 +401,7 @@ if (option.keyup) keyup = option.keyup; // eslint-disable-line - if (option.keydown) keydown = option.keydown; // eslint-disable-line + if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line } if (typeof option === 'string') scope = option; // 对于每个快捷键进行处理 diff --git a/dist/hotkeys.min.js b/dist/hotkeys.min.js index 559bd5c..de11740 100644 --- a/dist/hotkeys.min.js +++ b/dist/hotkeys.min.js @@ -1,2 +1,2 @@ -/*! hotkeys-js v3.6.12 | MIT (c) 2019 kenny wong | 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=e||self).hotkeys=t()}(this,function(){"use strict";var e="undefined"!=typeof navigator&&0 | 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=e||self).hotkeys=t()}(this,function(){"use strict";var e="undefined"!=typeof navigator&&0