diff --git a/lib/readline.js b/lib/readline.js index 3b6713dae0..6c867c4496 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -523,6 +523,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) {