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

Implement an easy way to attach keyboard shortcuts #227

Closed
radubrehar opened this issue May 20, 2024 · 2 comments
Closed

Implement an easy way to attach keyboard shortcuts #227

radubrehar opened this issue May 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@radubrehar
Copy link
Contributor

We need an easy way to allow people attach keyboard shortcuts and perform actions when a shortcut is pressed.

@radubrehar radubrehar self-assigned this May 20, 2024
@radubrehar radubrehar added the enhancement New feature or request label May 20, 2024
@radubrehar
Copy link
Contributor Author

We'll add keyboardShortcuts prop, which is an array of objects of the following shape:

{
  key: 'cmd+shift+x',
  when?: (context) => true/false,
  handler: (context, event) => ...
}

@radubrehar radubrehar added this to the 3.3.3 milestone May 30, 2024
@radubrehar
Copy link
Contributor Author

Shipped in 3.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant