We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In my use case, I’d like to be able to toggle state based on if a modifier key is pressed, so it would be great to be able to do something like:
class MyComponent extends React.Component { @keydown('alt') setModeCopy(event) { this.setState({ mode: 'copy' }); } @keyup('alt') setModeMove(event) { this.setState({ mode: 'move' }); } }
In actually use, I think I would use @keydownScoped and @keyupScoped.
The text was updated successfully, but these errors were encountered:
I could easily handle disabling key-repeat #30 with this feature.
Sorry, something went wrong.
No branches or pull requests
In my use case, I’d like to be able to toggle state based on if a modifier key is pressed, so it would be great to be able to do something like:
In actually use, I think I would use @keydownScoped and @keyupScoped.
The text was updated successfully, but these errors were encountered: