Browse Source

readline: ignore stray escape sequence

Fixes #2876.
v0.9.1-release
Colton Baker 13 years ago
committed by Ben Noordhuis
parent
commit
c84b3c4b73
  1. 3
      lib/readline.js

3
lib/readline.js

@ -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) {

Loading…
Cancel
Save