greena13 / react-hotkeys

Declarative hotkey and focus area management for React
https://github.com/greena13/react-hotkeys
ISC License
2.15k stars 160 forks source link

No way to specify 'only' an action with no modifiers. #281

Open burtonator opened 4 years ago

burtonator commented 4 years ago

Is your feature request related to a problem? Please describe.

Right now if I setup a binding for 's' it will also match 'control+s' or 'meta+s'

... it should be possible to match but with NO other modifiers and I don't think this is possible.

gnapse commented 2 years ago

Hi, fellow sufferer from the same bug 😅

I found this while looking information about this exact same issue. I found an answer in another issue that could be relevant: https://github.com/greena13/react-hotkeys/issues/175#issuecomment-492942710

I'm going to be trying it now. Maybe it works for you as well.