Skip to content

Commit

Permalink
fix: Allow keydown = false option (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeBC authored and jaywcjlove committed Jul 30, 2019
1 parent 9843a48 commit be2c9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function hotkeys(key, option, method) {
if (option.scope) scope = option.scope; // eslint-disable-line
if (option.element) element = option.element; // eslint-disable-line
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;
Expand Down

0 comments on commit be2c9b7

Please sign in to comment.