mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
Add missing TTY key translations for F1-F5 on Windows
This commit is contained in:
parent
d489a01f81
commit
f7b612550a
@ -225,6 +225,13 @@ ReadStream.prototype._emitKey = function(s) {
|
||||
case '[13~': key.name = 'f3'; break;
|
||||
case '[14~': key.name = 'f4'; break;
|
||||
|
||||
/* from Cygwin and used in libuv */
|
||||
case '[[A': key.name = 'f1'; break;
|
||||
case '[[B': key.name = 'f2'; break;
|
||||
case '[[C': key.name = 'f3'; break;
|
||||
case '[[D': key.name = 'f4'; break;
|
||||
case '[[E': key.name = 'f5'; break;
|
||||
|
||||
/* common */
|
||||
case '[15~': key.name = 'f5'; break;
|
||||
case '[17~': key.name = 'f6'; break;
|
||||
|
Loading…
Reference in New Issue
Block a user