You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionExampleComponent(){useHotkeys('alt + ctrl + o',()=>alert('Key a was pressed'))return(<span>Press the a key to see it work.</span>)}
does order matter/should order matter?
will it compare the combined combination ?
because i was expecting that if i only pressed in the combination then only it will work!
but it worked in all combination
if order matters for some people, I was thinking to contribute to the project, where you mention if you want sritct hot key, then it will match the order!
The text was updated successfully, but these errors were encountered:
The order doesn't matter, all combination will trigger the callback since the hook only check if all those keys are pressed down and doesn't keep track of the order.
What you are basically asking for is a timed combination something like this: #989
If you want to take this issue I'd be happy to give you some pointers.
I have this small doubt,
I have command alt+ctrl+o,
but it also works when I press ctrl+alt+o
does order matter/should order matter?
will it compare the combined combination ?
because i was expecting that if i only pressed in the combination then only it will work!
but it worked in all combination
if order matters for some people, I was thinking to contribute to the project, where you mention if you want sritct hot key, then it will match the order!
The text was updated successfully, but these errors were encountered: