From 7c77417c9aa31b3e7ed5c63f9e78bbfef4b2fcb1 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 25 Oct 2008 14:38:31 -0400 Subject: [PATCH] Update F11/F12 scan codes from bochs bios. This merges a patch that was committed to bochs bios. --- src/kbd.c | 4 ++-- src/post_menu.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kbd.c b/src/kbd.c index 5d7d76a..2d36c31 100644 --- a/src/kbd.c +++ b/src/kbd.c @@ -436,8 +436,8 @@ static struct scaninfo { { none, none, none, none, none }, { none, none, none, none, none }, { 0x565c, 0x567c, none, none, none }, /* \| */ - { 0x5700, 0x5700, none, none, none }, /* F11 */ - { 0x5800, 0x5800, none, none, none } /* F12 */ + { 0x8500, 0x8700, 0x8900, 0x8b00, none }, /* F11 */ + { 0x8600, 0x8800, 0x8a00, 0x8c00, none }, /* F12 */ }; static void diff --git a/src/post_menu.c b/src/post_menu.c index caba7da..e4a273e 100644 --- a/src/post_menu.c +++ b/src/post_menu.c @@ -54,7 +54,7 @@ interactive_bootmenu() if (! check_for_keystroke()) return; u8 scan_code = get_keystroke(); - if (scan_code != 0x58) + if (scan_code != 0x86) /* not F12 */ return; -- 2.39.5