summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormunvoseli <muslinmelody@gmail.com>2023-06-17 18:21:24 -0400
committermunvoseli <muslinmelody@gmail.com>2023-06-17 18:21:24 -0400
commit4e65b11ee88488be170b2888ccd1f8c56c670439 (patch)
tree5ec91c5271abdd95621a5f9873516bb474611889
parentd65a4091b13a0191792d278375ebb8d294226d9a (diff)
better shift key boi
-rw-r--r--public/javascript/game.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/public/javascript/game.js b/public/javascript/game.js
index deabb68..57b3eb5 100644
--- a/public/javascript/game.js
+++ b/public/javascript/game.js
@@ -1354,10 +1354,8 @@ function displayGuideline() {
function keyDownEvent(event) {
lastActivityTime = 0;
var keyCode = event.which;
- if (keyCode == 16) {
- shiftKeyIsHeld = true;
- }
- if (keyCode == 76) { // m
+ shiftKeyIsHeld = event.shiftKey;
+ if (keyCode == 76) { // l
lKeyIsHeld = true;
}
if (chatInputIsFocused) {