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] meta on Mac does not capture cmd like the docs say #1126

Open
AndrewRayCode opened this issue Jan 27, 2024 · 3 comments
Open

[BUG] meta on Mac does not capture cmd like the docs say #1126

AndrewRayCode opened this issue Jan 27, 2024 · 3 comments

Comments

@AndrewRayCode
Copy link

Describe the bug

  useHotkeys(`meta+l`, () => {
    console.log(`meta+l`);
  });
  useHotkeys(`cmd+l`, () => {
    console.log(`cmd+l`);
  });

On mac, only the second console log fires pressing ⌘-l

The docs incorrectly say:

The meta key is the same as cmd on macOS and os key on Windows.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version 120.0.6099.234
@JohannesKlauss
Copy link
Owner

Please provide a reproducible

@moloko
Copy link

moloko commented Feb 20, 2024

Using meta+l works fine for me.

It does, of course, only trigger one time - but that's because ⌘ + L is the 'go to address bar' keyboard shortcut in Chrome, Firefox & Safari

@JohannesKlauss
Copy link
Owner

As I said, please provide a reproducible codesandbox. Otherwise I can't help you

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