Merge pull request #14 from Pathduck/held-keys-issue

Temporary fix for #13
This commit is contained in:
ortiza5 2021-04-29 18:41:49 -06:00 committed by GitHub
commit c2215b2718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1842,6 +1842,10 @@ function removeFromKeysDown(e) {
}
function addToKeysDown(e) {
if (e.metaKey) KEYS_DOWN.add("meta");
if (e.ctrlKey) KEYS_DOWN.add("control");
if (e.altKey) KEYS_DOWN.add("alt");
if (e.shiftKey) KEYS_DOWN.add("shift");
KEYS_DOWN.add(e.key.toLowerCase());
}
exports.addToKeysDown = addToKeysDown;