From cf7b680db9f61a9f757581b1e3f4335e4402b722 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 2 Mar 2011 19:37:38 -0600 Subject: [PATCH] newline should also be treated as "enter" key. --- lib/tty_posix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';