react-hotkeys icon indicating copy to clipboard operation
react-hotkeys copied to clipboard

Support case-insensitive hotkeys

Open jowcy opened this issue 6 years ago • 3 comments

Is your feature request related to a problem? Please describe. Hotkeys all seem to fail when CAPSLOCK is enabled. Unless you define both CAPS and lowercase versions of the hotkey.

Describe the solution you'd like A simple configuration flag or boolean react property to specify if ignoreCase is true/false. By defaulting to false this could be done as a non-breaking change.

Describe alternatives you've considered Duplicating the keyMap entry for each shortcut to provide ALLCAPS and lowercase options may seem like an obvious workaround - but this may have the side effect of listing the shortcuts twice in the Shortcut Viewer

jowcy avatar Oct 24 '19 19:10 jowcy

I should clarify - there's obviously still a use for Shift + 'a' and 'a' to be defined as different shortcuts. So i don't want to conflate Shift + 'a' and 'A'

jowcy avatar Oct 25 '19 12:10 jowcy

Thanks for posting your issue.

Unfortunately I do not have the time to actively work on this package, but I am seeking other active maintainers. If you are willing to create a pull request or help out, that would be an excellent way of moving this forward.

greena13 avatar Jan 01 '20 19:01 greena13

This is a duplicate of https://github.com/greena13/react-hotkeys/issues/225

PatrickDesign avatar Sep 11 '20 08:09 PatrickDesign