Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
readline: ignore stray escape sequence
Browse files Browse the repository at this point in the history
Fixes #2876.
  • Loading branch information
Southern authored and bnoordhuis committed Mar 7, 2012
1 parent 408f450 commit c84b3c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/readline.js
Expand Up @@ -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) {
Expand Down

0 comments on commit c84b3c4

Please sign in to comment.