Skip to content

Commit

Permalink
feat: exports keyMap/modifier/modifierMap object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 21, 2022
1 parent 2f32c2f commit 6cd3f6d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/hotkeys.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion dist/hotkeys.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 4 additions & 1 deletion dist/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6cd3f6d

Please sign in to comment.