diff options
Diffstat (limited to 'lib/readline.js')
-rw-r--r-- | lib/readline.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline.js b/lib/readline.js index e45fdeac7..1872e852b 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -981,7 +981,7 @@ function emitKey(stream, s) { key.name = 'space'; key.meta = (s.length === 2); - } else if (s <= '\x1a') { + } else if (s.length === 1 && s <= '\x1a') { // ctrl+letter key.name = String.fromCharCode(s.charCodeAt(0) + 'a'.charCodeAt(0) - 1); key.ctrl = true; |