From ee632529051deaabbcf5bf43fa96a63cbe53180c Mon Sep 17 00:00:00 2001 From: robertmh Date: Thu, 29 May 2008 17:40:27 +0000 Subject: [PATCH] 2008-05-29 Robert Millan * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for control key combinations. --- ChangeLog | 5 +++++ term/i386/pc/at_keyboard.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dcbf025ab..f70fdfddb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-29 Robert Millan + + * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for + control key combinations. + 2008-05-29 Robert Millan * util/powerpc/ieee1275/grub-install.in: Move from here ... diff --git a/term/i386/pc/at_keyboard.c b/term/i386/pc/at_keyboard.c index 51799e154..2417bf5f4 100644 --- a/term/i386/pc/at_keyboard.c +++ b/term/i386/pc/at_keyboard.c @@ -186,7 +186,9 @@ grub_console_checkkey (void) key = -1; break; default: - if ((at_keyboard_status & (KEYBOARD_STATUS_SHIFT_L | KEYBOARD_STATUS_SHIFT_R)) + if (at_keyboard_status & (KEYBOARD_STATUS_CTRL_L | KEYBOARD_STATUS_CTRL_R)) + key = keyboard_map[key] - 'a' + 1; + else if ((at_keyboard_status & (KEYBOARD_STATUS_SHIFT_L | KEYBOARD_STATUS_SHIFT_R)) && keyboard_map_shift[key]) key = keyboard_map_shift[key]; else