released v3.7.4 #129

pull/130/head v3.7.4
jaywcjlove 5 years ago
parent 5d49f18fcc
commit 51d6f0ce0c

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.3
* hotkeys-js v3.7.4
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -396,6 +396,20 @@ function dispatch(event) {
if (Object.prototype.hasOwnProperty.call(_mods, e)) {
_mods[e] = event[modifierMap[e]];
}
}
/**
* https://github.com/jaywcjlove/hotkeys/pull/129
* This solves the issue in Firefox on Windows where hotkeys corresponding to special characters would not trigger.
* An example of this is ctrl+alt+m on a Swedish keyboard which is used to type μ.
* Browser support: https://caniuse.com/#feat=keyboardevent-getmodifierstate
*/
if (event.getModifierState && event.getModifierState('AltGraph')) {
_downKeys.push(17, 18);
_mods[17] = true;
_mods[18] = true;
} // 获取范围 默认为 `all`

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.3
* hotkeys-js v3.7.4
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -394,6 +394,20 @@ function dispatch(event) {
if (Object.prototype.hasOwnProperty.call(_mods, e)) {
_mods[e] = event[modifierMap[e]];
}
}
/**
* https://github.com/jaywcjlove/hotkeys/pull/129
* This solves the issue in Firefox on Windows where hotkeys corresponding to special characters would not trigger.
* An example of this is ctrl+alt+m on a Swedish keyboard which is used to type μ.
* Browser support: https://caniuse.com/#feat=keyboardevent-getmodifierstate
*/
if (event.getModifierState && event.getModifierState('AltGraph')) {
_downKeys.push(17, 18);
_mods[17] = true;
_mods[18] = true;
} // 获取范围 默认为 `all`

16
dist/hotkeys.js vendored

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.3
* hotkeys-js v3.7.4
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -400,6 +400,20 @@
if (Object.prototype.hasOwnProperty.call(_mods, e)) {
_mods[e] = event[modifierMap[e]];
}
}
/**
* https://github.com/jaywcjlove/hotkeys/pull/129
* This solves the issue in Firefox on Windows where hotkeys corresponding to special characters would not trigger.
* An example of this is ctrl+alt+m on a Swedish keyboard which is used to type μ.
* Browser support: https://caniuse.com/#feat=keyboardevent-getmodifierstate
*/
if (event.getModifierState && event.getModifierState('AltGraph')) {
_downKeys.push(17, 18);
_mods[17] = true;
_mods[18] = true;
} // 获取范围 默认为 `all`

File diff suppressed because one or more lines are too long

2
package-lock.json generated

@ -1,6 +1,6 @@
{
"name": "hotkeys-js",
"version": "3.7.3",
"version": "3.7.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

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

Loading…
Cancel
Save