Animeshz / keyboard-mouse-kt

A lightweight multiplatform library for interacting with global keyboard and mouse events and states from Kotlin, Java and NodeJS.
https://animeshz.github.io/keyboard-mouse-kt
MIT License
52 stars 2 forks source link

"Expected a Boolean" error occurred while sending events through NodeJS. #16

Closed Animeshz closed 3 years ago

Animeshz commented 3 years ago

Affected files:

https://github.com/Animeshz/keyboard-mouse-kt/blob/19b10700f5f4a87c5f9e834bb5aaa37e6c735b54/keyboard-kt/src/jsMain/cpp/windows/JsKeyboardHandler.cpp#L21-L23

https://github.com/Animeshz/keyboard-mouse-kt/blob/19b10700f5f4a87c5f9e834bb5aaa37e6c735b54/keyboard-kt/src/jsMain/cpp/linux/JsKeyboardHandler.cpp#L21-L23

The index number 0 is used twice by mistake, a quick-fix can be added.

Animeshz commented 3 years ago

Fixed by #17.