Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear _downKeys on dispatch #122

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dist/hotkeys.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* hotkeys-js v3.7.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <[email protected]>
* Copyright (c) 2020 kenny wong <[email protected]>
* http://jaywcjlove.github.io/hotkeys
*
* Licensed under the MIT license.
Expand Down Expand Up @@ -355,6 +355,7 @@ function dispatch(event) {
// Webkit左右 command 键值不一样

if (key === 93 || key === 224) key = 91;
_downKeys = [];
/**
* Collect bound keys
* If an Input Method Editor is processing key input and the event is keydown, return 229.
Expand Down
4 changes: 2 additions & 2 deletions dist/hotkeys.common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/hotkeys.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* hotkeys-js v3.7.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <[email protected]>
* Copyright (c) 2020 kenny wong <[email protected]>
* http://jaywcjlove.github.io/hotkeys
*
* Licensed under the MIT license.
Expand Down Expand Up @@ -353,6 +353,7 @@ function dispatch(event) {
// Webkit左右 command 键值不一样

if (key === 93 || key === 224) key = 91;
_downKeys = [];
/**
* Collect bound keys
* If an Input Method Editor is processing key input and the event is keydown, return 229.
Expand Down
3 changes: 2 additions & 1 deletion dist/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* hotkeys-js v3.7.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2019 kenny wong <[email protected]>
* Copyright (c) 2020 kenny wong <[email protected]>
* http://jaywcjlove.github.io/hotkeys
*
* Licensed under the MIT license.
Expand Down Expand Up @@ -359,6 +359,7 @@
// Webkit左右 command 键值不一样

if (key === 93 || key === 224) key = 91;
_downKeys = [];
/**
* Collect bound keys
* If an Input Method Editor is processing key input and the event is keydown, return 229.
Expand Down
Loading