Skip to content

Commit

Permalink
emitter.matches fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lcfvs committed May 9, 2018
1 parent cf96e6a commit e671116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions dom/emitter/.matches.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export function matches (e, ctrl, alt, shift, keys, code) {
return false
}

return keys &&
(indexOf(keys, e.key) > -1 || e.which === code || e.keyCode === code)
return !keys ||
indexOf(keys, e.key) > -1 ||
e.which === code ||
e.keyCode === code
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anticore",
"version": "2.18.0",
"version": "2.18.1",
"description": "A generic living DOM library to simplify your client code, like with its easiest middleware manager for AJAX requests.",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit e671116

Please sign in to comment.