Skip to content

Commit

Permalink
Readline escape error fixed (nodejs#2876)
Browse files Browse the repository at this point in the history
  • Loading branch information
Southern committed Mar 6, 2012
1 parent 744dfd4 commit 6006ad6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ Interface.prototype._ttyWrite = function(s, key) {
var next_word, next_non_word, previous_word, previous_non_word;
key = key || {};

// Ignore the escape key - Fixes #2876
if (key.name == 'escape') return;

if (key.ctrl && key.shift) {
/* Control and shift pressed */
switch (key.name) {
Expand Down

0 comments on commit 6006ad6

Please sign in to comment.