iohook
iohook copied to clipboard
Mouse events not firing after keypres on Mac
I am testing iohook in node.js with the standard example both on Windows and Mac. On Mac after running the code mousemove events logs the event, but after pressing any key it stops firing. This issue is not present on Windows, it works as expected.
I have tested other computers too, but all of them were running macOS Mojave version 10.14.4
Similar problem. The events work only on the first action. The second event doesn't trigger any action
Hi there, I'm sorry I can't reproduce that. If anyone can reproduce it and is able to help, it would be great
Same issue. I noticed that "mousemove" event works as intended.
Same issue here, OS is Mojave. Seems to be the same issue as https://github.com/wilix-team/iohook/issues/124. Would love a fix for this.
It's only issue with node. Electron works fine
Currently using it also with electron and works without issues with Mojave 10.14.13. Events I am using are: mousemove, mousewheel and keyup
Also experiencing this in a generic node script on mac, first keydown triggers but not subsequent ones.
For example, when I press the character 'e' (or any key...), this is the output:
process_key_pressed [367]: Key 0X20 pressed. (0X2)
dispatch_event [108]: Dispatching event type 4.
process_key_pressed [379]: Using dispatch_sync_f for key typed events.
{ shiftKey: false,
altKey: false,
ctrlKey: false,
metaKey: false,
keycode: 32,
rawcode: 2,
type: 'keydown' }
Keycode 32 seems to be the space bar which I'm not pressing.
Seeing this too on 10.14.5
I'm experienced this too. Node 10.16.0 and MacOS Mojave 10.14.1
Hello, check this comment for a workaround for this problem https://github.com/wilix-team/iohook/issues/124#issuecomment-513026388
Also experiencing this in a generic node script on mac, first keydown triggers but not subsequent ones.
For example, when I press the character 'e' (or any key...), this is the output:
process_key_pressed [367]: Key 0X20 pressed. (0X2) dispatch_event [108]: Dispatching event type 4. process_key_pressed [379]: Using dispatch_sync_f for key typed events. { shiftKey: false, altKey: false, ctrlKey: false, metaKey: false, keycode: 32, rawcode: 2, type: 'keydown' }Keycode 32 seems to be the space bar which I'm not pressing.
Same with you
Is this still an issue?
yes, the same issue
"iohook": "^0.9.3",

yes, the same issue
"iohook": "^0.9.3",
What's your environment please? Node/electron version, os, etc.
Thanks for response, Don't worry, I solved my issue by using other library
Thanks for response, Don't worry, I solved my issue by using other library
Could you share it with us so others running into your use case can use it as well?
Here is the code that I used
https://github.com/djkskqyr3/samples.git