From 7a5708714b57385a8153ae49753842cd5534a472 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 27 Jul 2018 11:12:03 +0300 Subject: [PATCH] Fix irc modifiers not working with caps lock --- client/js/keybinds.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/keybinds.js b/client/js/keybinds.js index c5196f18..5a9052df 100644 --- a/client/js/keybinds.js +++ b/client/js/keybinds.js @@ -167,7 +167,8 @@ const colorsHotkeys = { for (const hotkey in colorsHotkeys) { inputTrap.bind("mod+" + hotkey, function(e) { - const modifier = colorsHotkeys[e.key]; + // Key is lowercased because keybinds also get processed if caps lock is on + const modifier = colorsHotkeys[e.key.toLowerCase()]; wrapCursor( e.target,