diff --git a/lib/tty_posix.js b/lib/tty_posix.js index 49879a94d4..c0bb8a7c8e 100644 --- a/lib/tty_posix.js +++ b/lib/tty_posix.js @@ -120,7 +120,7 @@ ReadStream.prototype._emitKey = function(s) { } } - if (s === '\r') { + if (s === '\r' || s === '\n') { // enter key.name = 'enter';