I've been noticing a lot of people upset about the fact that the semantics
of the undocumented "keypress" event had changed in node v0.8.x.
The solution: the "keypress" module[0] up on npm. This module acts as
backwards-compatible polyfill, while offering to be the "official" module
to use for your projects going forward.
The API is dead simple:
require('keypress')(someStream);
someStream.on('keypress', function (ch, key) { ... });
See the README for more. Cheers!
0: https://github.com/TooTallNate/keypress
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en