From 1ab1dbdf3cdfb19f5e4018f7a30272252ecb27f6 Mon Sep 17 00:00:00 2001 From: ortiza5 <43008712+ortiza5@users.noreply.github.com> Date: Thu, 29 Apr 2021 18:04:33 -0600 Subject: [PATCH] Potential fix for #13 --- js/spatial-navigation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/spatial-navigation.js b/js/spatial-navigation.js index b2bd76c..994e2ff 100644 --- a/js/spatial-navigation.js +++ b/js/spatial-navigation.js @@ -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;