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

On macOS big sur 11.1 version, it records keydown only once, keyup not even once. It should record these events on every keyup/keydown. #295

Closed
jangidsh4 opened this issue Feb 10, 2021 · 1 comment

Comments

@jangidsh4
Copy link

jangidsh4 commented Feb 10, 2021

Expected Behavior

Keydown/keyupevent should be triggered every time

Current Behavior

Keyup/keydown events are triggered only once
mousemove and mouse click works fine until no key is pressed
Keyup is not working even at first click
keydown chokes everything, event mouse events when first key is pressed.

Possible Solution

No Idea, but it requires a fix to c library, looks like.

Steps to Reproduce (for bugs)

  1. On macOS Big Sur 11.1 version, register keydown/keyup event in node js app using iohook
  2. run the app and see that it only triggers event on first keyup/keydown, not on subsequent hits

Context

I am creating a activity monitor app and would like to see the productivity of the user.

Your Environment

DEV

@jangidsh4 jangidsh4 changed the title On macOS big sur 11.1 version, it records keydown/keyup/keypress only once. It should records it everytime, a key is hit on the keyboard. On macOS big sur 11.1 version, it records keydown/keyup only once. It should records it everytime, a key is hit on the keyboard. Feb 10, 2021
@jangidsh4 jangidsh4 changed the title On macOS big sur 11.1 version, it records keydown/keyup only once. It should records it everytime, a key is hit on the keyboard. On macOS big sur 11.1 version, it records keydown only once, keyup not even once. It should record these events on every keyup/keydown. Feb 10, 2021
@jangidsh4
Copy link
Author

jangidsh4 commented Feb 11, 2021

never mind, I got it working. Well documented steps by #124 (comment), followed the same but it was not working since I just copied "iohook.node" from iohook node_modules after new build by commenting suggested line. You also need to copy "uiohook.dylib" from the same folder into your ./node_modules/iohook/builds/node-v83-darwin-x64/build/release" folder. And it works. Cheers...
node v14.15.3
macOS Big Sur 11.2.1 (updated to the new patch this morning)

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