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

Is possible only use modifier? #18

Open
gleidsonh opened this issue Jul 14, 2019 · 1 comment
Open

Is possible only use modifier? #18

gleidsonh opened this issue Jul 14, 2019 · 1 comment

Comments

@gleidsonh
Copy link

Is possible to use just modifier? I want to use only alt key, but it's not working. With combination works fine. (alt+s)

<Hotkeys 
   keyName="alt" 
   onKeyDown={this.onKeyDown.bind(this)}
   onKeyUp={this.onKeyUp.bind(this)}
/>
@aeksco
Copy link

aeksco commented Jun 12, 2020

Ping on this - I have a use case where I need the user to hold down the shift key to enable/disable specific functionality. Doesn't appear to be working when you only pass a modifier to keyName

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

No branches or pull requests

2 participants