is-hotkey
is-hotkey copied to clipboard
Added ability to be used using a switch statment (#46)
Description
I added a toHotkeyName
and a getHotKeyName
function in order to convert an event to a hotkey name that can then be used inside a switch statement.
I also took the time to add the necessary documentation though it might not be fully complete as I didn't describe the toHotKeyName
function.
Fixes #46
Type of change
Please delete options that are not relevant.
- [x] New feature (non-breaking change which adds functionality)
- [x] Documentation update
How To Verify?
If you would like, you could test this feature in this sandbox.
@osmium-dev thank you, this is a really cool idea!
Can you add a few tests to ensure this stays working going forward? Thanks!
I would love these, @samyosm can you please, also add the tests so that @ianstormtaylor can merge :)
@osmium-dev thank you, this is a really cool idea!
Can you add a few tests to ensure this stays working going forward? Thanks!
I added a few tests, I'm not sure they pass thought.