react-hotkeys icon indicating copy to clipboard operation
react-hotkeys copied to clipboard

Is possible only use modifier?

Open gleidsonh opened this issue 5 years ago • 1 comments

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)}
/>

gleidsonh avatar Jul 14 '19 07:07 gleidsonh

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

aeksco avatar Jun 12 '20 19:06 aeksco