Skip to content

Commit

Permalink
Readline fix for nodejs#2876.
Browse files Browse the repository at this point in the history
  • Loading branch information
Southern committed Mar 6, 2012
1 parent 9ea5a4c commit f9a6ff7
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 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 f9a6ff7

Please sign in to comment.