Fix irc modifiers not working with caps lock
This commit is contained in:
parent
7b926f7c32
commit
7a5708714b
@ -167,7 +167,8 @@ const colorsHotkeys = {
|
|||||||
|
|
||||||
for (const hotkey in colorsHotkeys) {
|
for (const hotkey in colorsHotkeys) {
|
||||||
inputTrap.bind("mod+" + hotkey, function(e) {
|
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(
|
wrapCursor(
|
||||||
e.target,
|
e.target,
|
||||||
|
Loading…
Reference in New Issue
Block a user