Potential fix for #13
This commit is contained in:
@@ -1842,6 +1842,10 @@ function removeFromKeysDown(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addToKeysDown(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());
|
KEYS_DOWN.add(e.key.toLowerCase());
|
||||||
}
|
}
|
||||||
exports.addToKeysDown = addToKeysDown;
|
exports.addToKeysDown = addToKeysDown;
|
||||||
|
|||||||
Reference in New Issue
Block a user