diff options
author | cjihrig <cjihrig@gmail.com> | 2016-04-02 21:08:22 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2016-04-05 10:48:59 -0400 |
commit | 0a62f929da0cff816d79d2ed2b9b3b4ecdd50586 (patch) | |
tree | e84850ab613c4038e37391470a757f625f71764d /test | |
parent | 3de9bc94294d0cab691d8a6e261733e8a8e98342 (diff) | |
download | android-node-v8-0a62f929da0cff816d79d2ed2b9b3b4ecdd50586.tar.gz android-node-v8-0a62f929da0cff816d79d2ed2b9b3b4ecdd50586.tar.bz2 android-node-v8-0a62f929da0cff816d79d2ed2b9b3b4ecdd50586.zip |
readline: emit key info unconditionally
Currently, 'keypress' events include the sequence and key info
for named keys, but only the sequence for unnamed keys. This
commit causes the key info to be included in both cases.
PR-URL: https://github.com/nodejs/node/pull/6024
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-readline-keys.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-readline-keys.js b/test/parallel/test-readline-keys.js index e026c0b583..ef9e2eba90 100644 --- a/test/parallel/test-readline-keys.js +++ b/test/parallel/test-readline-keys.js @@ -48,7 +48,7 @@ function addTest(sequences, expectedKeys) { addTest('io.JS', [ { name: 'i', sequence: 'i' }, { name: 'o', sequence: 'o' }, - undefined, // emitted as `emit('keypress', '.', undefined)` + { name: undefined, sequence: '.' }, { name: 'j', sequence: 'J', shift: true }, { name: 's', sequence: 'S', shift: true }, ]); |