projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
452df69
)
newline should also be treated as "enter" key.
author
Tom Hughes
<tom.hughes@palm.com>
Thu, 3 Mar 2011 01:37:38 +0000
(19:37 -0600)
committer
Ryan Dahl
<ry@tinyclouds.org>
Thu, 3 Mar 2011 05:00:06 +0000
(21:00 -0800)
lib/tty_posix.js
patch
|
blob
|
history
diff --git
a/lib/tty_posix.js
b/lib/tty_posix.js
index
49879a9
..
c0bb8a7
100644
(file)
--- 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';