iohook icon indicating copy to clipboard operation
iohook copied to clipboard

Mouse events not firing after keypres on Mac

Open georgesaftaacqua opened this issue 6 years ago • 17 comments
trafficstars

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

georgesaftaacqua avatar Apr 23 '19 20:04 georgesaftaacqua

Similar problem. The events work only on the first action. The second event doesn't trigger any action

bharat619 avatar Apr 26 '19 12:04 bharat619

Hi there, I'm sorry I can't reproduce that. If anyone can reproduce it and is able to help, it would be great

Djiit avatar Apr 26 '19 12:04 Djiit

Same issue. I noticed that "mousemove" event works as intended.

HYUTS avatar Apr 28 '19 00:04 HYUTS

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.

McCraryCharles avatar Apr 29 '19 15:04 McCraryCharles

It's only issue with node. Electron works fine

bharat619 avatar Apr 29 '19 16:04 bharat619

Currently using it also with electron and works without issues with Mojave 10.14.13. Events I am using are: mousemove, mousewheel and keyup

delubyo avatar May 04 '19 02:05 delubyo

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.

captDaylight avatar Jun 03 '19 13:06 captDaylight

Seeing this too on 10.14.5

icodeforlove avatar Jun 29 '19 10:06 icodeforlove

I'm experienced this too. Node 10.16.0 and MacOS Mojave 10.14.1

julia-suarez-deel avatar Jul 02 '19 18:07 julia-suarez-deel

Hello, check this comment for a workaround for this problem https://github.com/wilix-team/iohook/issues/124#issuecomment-513026388

julia-suarez-deel avatar Jul 18 '19 23:07 julia-suarez-deel

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

a1245582339 avatar Oct 23 '20 06:10 a1245582339

Is this still an issue?

ash0x0 avatar Jun 12 '21 01:06 ash0x0

yes, the same issue

"iohook": "^0.9.3",

image

djkskqyr3 avatar Jun 19 '21 21:06 djkskqyr3

yes, the same issue

"iohook": "^0.9.3",

image

What's your environment please? Node/electron version, os, etc.

ash0x0 avatar Jun 26 '21 15:06 ash0x0

Thanks for response, Don't worry, I solved my issue by using other library

djkskqyr3 avatar Jul 09 '21 08:07 djkskqyr3

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?

ash0x0 avatar Jul 09 '21 20:07 ash0x0

Here is the code that I used

https://github.com/djkskqyr3/samples.git

djkskqyr3 avatar Jul 09 '21 22:07 djkskqyr3