iPXE discussion forum
about /src/include/ipxe/keys.h - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: about /src/include/ipxe/keys.h (/showthread.php?tid=21806)



about /src/include/ipxe/keys.h - alhyene - 2020-03-06 18:25

Hi all I was just wondering why
in: /src/include/ipxe/keys.h

#define KEY_F5 KEY_ANSI ( 15, '~' ) /**< F5 */
#define KEY_F6 KEY_ANSI ( 17, '~' ) /**< F6 */
#define KEY_F7 KEY_ANSI ( 18, '~' ) /**< F7 */
#define KEY_F8 KEY_ANSI ( 19, '~' ) /**< F8 (for PXE) */
#define KEY_F9 KEY_ANSI ( 20, '~' ) /**< F9 */
#define KEY_F10 KEY_ANSI ( 21, '~' ) /**< F10 */
#define KEY_F11 KEY_ANSI ( 23, '~' ) /**< F11 */
#define KEY_F12 KEY_ANSI ( 24, '~' ) /**< F12 */

are defined like that. Why KEY_F6 != 16 , KEY_F7 != 17 , ...?

Is it a 'bug' or somewhat for that ??
Huh