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

[BUG] "ctrl" alone not triggered #1073

Open
leefsmp opened this issue Sep 8, 2023 · 2 comments
Open

[BUG] "ctrl" alone not triggered #1073

leefsmp opened this issue Sep 8, 2023 · 2 comments

Comments

@leefsmp
Copy link

leefsmp commented Sep 8, 2023

I would like to set a hotkey for ctrl pressed alone but it doesn't get triggered, am I missing something?

 useHotkeys('ctrl', () => console.log("ctrl where are you..."))

other combination with ctrl are working tho:

 useHotkeys('ctrl+a', () => console.log("oh yeah"))

(I am testing on mac...)

Thanks

@JohannesKlauss
Copy link
Owner

Please add a reproducible

@andrewmelnyk
Copy link

andrewmelnyk commented Dec 1, 2023

I have the same issue useHotkeys('ctrl', () => console.log("ctrl where are you...")) does not get triggered. Linux and Mac

turns out "meta" is "ctl" that maybe is listed somewhere but the examples imply you can use "ctl".

useHotkeys('meta', () => console.log("ctrl where are you...")) <- this will work

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

3 participants