Skip to content

Commit

Permalink
newline should also be treated as "enter" key.
Browse files Browse the repository at this point in the history
  • Loading branch information
thughes authored and ry committed Mar 3, 2011
1 parent 452df69 commit cf7b680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tty_posix.js
Expand Up @@ -120,7 +120,7 @@ ReadStream.prototype._emitKey = function(s) {
}
}

if (s === '\r') {
if (s === '\r' || s === '\n') {
// enter
key.name = 'enter';

Expand Down

0 comments on commit cf7b680

Please sign in to comment.