Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tool to generate correct hotkey string for a given key combination #59

Merged
merged 3 commits into from
Dec 15, 2021

Conversation

theinterned
Copy link
Contributor

@theinterned theinterned commented Dec 14, 2021

relates to #54

This PR adds a tool to the /examples folder that allows a user to determine the correct hotkey string (as returned from eventToHotKeyString) for the given key combination. This tool could be a useful reference for users wanting to determine the correct hotkey string for their shortcut.

The tool is visible here https://github.github.io/hotkey/examples/hotkey_mapper.html

See the attached screen cast of the tool in action:

Screen.Recording.2021-12-14.at.6.57.43.PM.mov

@theinterned theinterned requested a review from a team as a code owner December 14, 2021 23:50
@theinterned theinterned linked an issue Dec 14, 2021 that may be closed by this pull request
Copy link
Contributor

@dgreif dgreif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! Thanks for adding this!

@theinterned theinterned merged commit b0b4759 into main Dec 15, 2021
@theinterned theinterned deleted the theinterned/hotkey-code-tool branch December 15, 2021 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eventToHotkeyString inconsistent shift key behaviour on Mac
3 participants