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

Expose keyEquivalent #201

Closed
wants to merge 1 commit into from
Closed

Conversation

gpoitch
Copy link
Contributor

@gpoitch gpoitch commented Mar 5, 2025

Makes Shortcut.keyEquivalent public.

Use case:
Say I have a menu item for "New Post". Users can set a preferred global shortcut, otherwise it uses a local-only default. I need to set the menu item's keyEquivalent/keyEquivalentModifierMask for both scenarios.

@sindresorhus
Copy link
Owner

Would be nice to handle this automatically, but this is good enough for now. #202

@sindresorhus
Copy link
Owner

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.

2 participants