0
0
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:
Brandon Benvie 2011-12-29 02:39:56 -05:00 committed by Bert Belder
parent d489a01f81
commit f7b612550a

View File

@ -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;