diff --git a/dom/emitter/.matches.js b/dom/emitter/.matches.js index abcd86b..efb0965 100644 --- a/dom/emitter/.matches.js +++ b/dom/emitter/.matches.js @@ -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 } diff --git a/package.json b/package.json index d87d3d0..26a0bab 100644 --- a/package.json +++ b/package.json @@ -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": {