Skip to content

NumLock throwing error #165

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

Closed
smithkyle opened this issue Jun 26, 2023 · 3 comments
Closed

NumLock throwing error #165

smithkyle opened this issue Jun 26, 2023 · 3 comments

Comments

@smithkyle
Copy link
Contributor

Creating a new issue - not sure if my comment the in the closed issue referenced below was seen.

          There seems to be a mismatch somewhere with NumLock - when I use Key.NumLock I get an error:
Error: [nut.js] - Error: Invalid key code specified.
    at Object.libnut. [as keyToggle] (/Users/ksmith/dev/nutjs-test/node_modules/@nut-tree/libnut-darwin/permissionCheck.js:68:96)

But if I use Key.NumberLock, I don't get an error...I'm not sure if it's actually working correctly or not, though...

This is on macOS 12.4

Originally posted by @smithkyle in #102 (comment)

@s1hofmann
Copy link
Member

Hi @smithkyle 👋

macOS does not have a dedicated NumLock key, thus it throws an error if you try to press it.
Key.NumberLock is not a valid key at all, so even though it does not trigger an error, it also has no effect.

Best regards

Simon

@s1hofmann
Copy link
Member

Closed by #166

@s1hofmann
Copy link
Member

Thanks for your contribution, @smithkyle 💯

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

2 participants