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

Order of keys- does it matter or should it matter ? #425

Closed
KMJ-007 opened this issue Apr 16, 2023 · 1 comment
Closed

Order of keys- does it matter or should it matter ? #425

KMJ-007 opened this issue Apr 16, 2023 · 1 comment

Comments

@KMJ-007
Copy link

KMJ-007 commented Apr 16, 2023

I have this small doubt,

I have command alt+ctrl+o,

but it also works when I press ctrl+alt+o

function ExampleComponent() {
  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!

@KMJ-007 KMJ-007 changed the title Order of commands does it matter or should it matter ? Order of keys- does it matter or should it matter ? Apr 16, 2023
@KMJ-007 KMJ-007 closed this as completed Apr 16, 2023
@KMJ-007
Copy link
Author

KMJ-007 commented Apr 16, 2023

wrong lib :)

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

1 participant