From c84b3c4b73bb7cbd7116b5872babe7e50b45d4a6 Mon Sep 17 00:00:00 2001 From: Colton Baker Date: Tue, 6 Mar 2012 01:22:51 -0500 Subject: [PATCH] readline: ignore stray escape sequence Fixes #2876. --- lib/readline.js | 3 +++ 1 file changed, 3 insertions(+) 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) {