From 6cd3f6d1f38a38fc940b924a01daefc27ee70d5c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 21 Apr 2022 22:24:54 +0800 Subject: [PATCH] feat: exports keyMap/modifier/modifierMap object. --- dist/hotkeys.common.js | 5 ++++- dist/hotkeys.esm.js | 5 ++++- dist/hotkeys.js | 5 ++++- src/index.js | 3 +++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dist/hotkeys.common.js b/dist/hotkeys.common.js index 1da0e897..11a613fb 100644 --- a/dist/hotkeys.common.js +++ b/dist/hotkeys.common.js @@ -568,7 +568,10 @@ var _api = { isPressed: isPressed, filter: filter, trigger: trigger, - unbind: unbind + unbind: unbind, + keyMap: _keyMap, + modifier: _modifier, + modifierMap: modifierMap }; for (var a in _api) { diff --git a/dist/hotkeys.esm.js b/dist/hotkeys.esm.js index a8ea9813..93dfacce 100644 --- a/dist/hotkeys.esm.js +++ b/dist/hotkeys.esm.js @@ -566,7 +566,10 @@ var _api = { isPressed: isPressed, filter: filter, trigger: trigger, - unbind: unbind + unbind: unbind, + keyMap: _keyMap, + modifier: _modifier, + modifierMap: modifierMap }; for (var a in _api) { diff --git a/dist/hotkeys.js b/dist/hotkeys.js index 9ae26838..68ed7937 100644 --- a/dist/hotkeys.js +++ b/dist/hotkeys.js @@ -572,7 +572,10 @@ isPressed: isPressed, filter: filter, trigger: trigger, - unbind: unbind + unbind: unbind, + keyMap: _keyMap, + modifier: _modifier, + modifierMap: modifierMap }; for (var a in _api) { diff --git a/src/index.js b/src/index.js index f09fbe7b..5a37bfca 100644 --- a/src/index.js +++ b/src/index.js @@ -404,6 +404,9 @@ const _api = { filter, trigger, unbind, + keyMap: _keyMap, + modifier: _modifier, + modifierMap, }; for (const a in _api) { if (Object.prototype.hasOwnProperty.call(_api, a)) {