Permalink
Browse files

readline: emitKeypress() -> emitKeypressEvents()

  • Loading branch information...
1 parent 35c9d43 commit ba477786577a369c4b903ed87573074a82225e9c @TooTallNate committed Mar 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/readline.js
View
@@ -81,7 +81,7 @@ function Interface(input, output, completer, enabled) {
} else {
- exports.emitKeypress(input);
+ exports.emitKeypressEvents(input);
// input usually refers to stdin
input.on('keypress', function(s, key) {
@@ -739,7 +739,7 @@ exports.Interface = Interface;
* accepts a readable Stream instance and makes it emit "keypress" events
*/
-function emitKeypress(stream) {
+function emitKeypressEvents(stream) {
if (stream._emitKeypress) return;
var keypressListeners = stream.listeners('keypress');
@@ -764,7 +764,7 @@ function emitKeypress(stream) {
stream.on('newListener', onNewListener);
stream._emitKeypress = true;
}
-exports.emitKeypress = emitKeypress;
+exports.emitKeypressEvents = emitKeypressEvents;
/*
Some patterns seen in terminal key escape codes, derived from combos seen

0 comments on commit ba47778

Please sign in to comment.