Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

readline: ignore stray escape sequence

Fixes #2876.
  • Loading branch information...
Southern authored and bnoordhuis committed Mar 6, 2012
1 parent 408f450 commit c84b3c4b73bb7cbd7116b5872babe7e50b45d4a6
Showing with 3 additions and 0 deletions.
  1. +3 −0 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) {

0 comments on commit c84b3c4

Please sign in to comment.
You can’t perform that action at this time.