-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.
Description
- Version: 6.2.2 and 4.4.5
- Platform: macOS 10.11.5
- Subsystem: readline
Test case
const readline = require('readline');
readline.emitKeypressEvents(process.stdin);
process.stdin.setRawMode(true);
process.stdin.on('keypress', console.log);
Expected
After pressing Esc once, I would get this output:
undefined { sequence: '\u001b',
name: 'escape',
ctrl: false,
meta: true,
shift: false }
Actual
After pressing Esc three times, I get this output:
undefined { sequence: '\u001b\u001b\u001b',
name: 'escape',
ctrl: false,
meta: true,
shift: false }
It works fine on 0.10.44 and 0.12.13. After pressing Esc once:
{ name: 'escape',
ctrl: false,
meta: false,
shift: false,
sequence: '\u001b' }
Also notice that meta
is false
here.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.