Fix irc modifiers not working with caps lock

This commit is contained in:
Pavel Djundik 2018-07-27 11:12:03 +03:00 committed by GitHub
parent 7b926f7c32
commit 7a5708714b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,