nurpax / petmate

PETSCII editor with Electron/React/Redux
MIT License
181 stars 14 forks source link

Enabling Caps lock disables shortcuts #119

Closed Viza74 closed 5 years ago

Viza74 commented 5 years ago

...or probably more accurately the app now receives uppercase characters as shortcuts, so it is not reacting to them... I don't know if this is a bug. I guess Shift+keys should be a legal shortcut, so technically capslock+key sends that, but still it feels like a bug. :) Guess the fix would depend on if it is possible for you to differentiate a capslock+key from a shift+key in the program.

nurpax commented 5 years ago

Petmate checks for lowercase characters in the shortcut code. Shift is tracked as a separate keystate sl it should be enough to simply inputkey.toLowerCase() before checking sny shortcuts.