joyent/node — pull request #2626 by TooTallNate (2012-01-27 22:54:59+00:00)
Title: Emit an 'unknown' key event for any unknown key sequence.

Originally from this thread on `nodejs-dev`: http://groups.google.com/group/nodejs-dev/browse_thread/thread/a0c23008029e5fa7

This allows extensibility of the 'keypress' events in user-space, for example parsing the output from "mouse reporting", which could then be re-emitted on the Stream as 'mousedown' and 'mouseup' events.

There didn't seem to be any `tty` tests, probably because this is a hard thing to test for, so I didn't add any in this case.