readline: ignore stray escape sequence

Fixes #2876.
This commit is contained in:
Colton Baker 2012-03-06 01:22:51 -05:00 committed by Ben Noordhuis
parent 408f450286
commit c84b3c4b73

View File

@ -523,6 +523,9 @@ Interface.prototype._ttyWrite = function(s, key) {
var next_word, next_non_word, previous_word, previous_non_word; var next_word, next_non_word, previous_word, previous_non_word;
key = key || {}; key = key || {};
// Ignore escape key - Fixes #2876
if (key.name == 'escape') return;
if (key.ctrl && key.shift) { if (key.ctrl && key.shift) {
/* Control and shift pressed */ /* Control and shift pressed */
switch (key.name) { switch (key.name) {