We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(tested on Kubuntu 15) Awesome module, but unfortunately every event includes a newline in the data field.
index.js
var gkm = require('gkm'); gkm.events.on('key.pressed', function (data) { console.log('\'' + data + '\'') console.log(this.event + ' ' + data); });
output
'D ' key.pressed D
Guess that's not intended, makes it much harder to work with at least.
The text was updated successfully, but these errors were encountered:
@dodekeract, in gkm.js, could you try replacing the regex on line 13 from \r\n to \r\n|\r|\n and let me know if that fixes your issue?
gkm.js
\r\n
\r\n|\r|\n
Sorry, something went wrong.
Yeah, will verify that later today or tomorrow, will submit a pull-request if that fixes it.
Closed per #3. Thanks again.
No branches or pull requests
(tested on Kubuntu 15)
Awesome module, but unfortunately every event includes a newline in the data field.
index.js
output
Guess that's not intended, makes it much harder to work with at least.
The text was updated successfully, but these errors were encountered: