Merge pull request #2677 from thelounge/xpaw/keybinds-caps

Fix irc modifiers not working with caps lock
This commit is contained in:
Jérémie Astori 2018-08-01 00:47:06 -04:00 committed by GitHub
commit cf7088ea79
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,