iPXE discussion forum

Full Version: about /src/include/ipxe/keys.h
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Reference URL's