2008-05-29 Robert Millan <rmh@aybabtu.com>

* term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
        control key combinations.
This commit is contained in:
robertmh 2008-05-29 17:40:27 +00:00
parent eee96e0837
commit ee63252905
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-05-29 Robert Millan <rmh@aybabtu.com>
* term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
control key combinations.
2008-05-29 Robert Millan <rmh@aybabtu.com>
* util/powerpc/ieee1275/grub-install.in: Move from here ...

View file

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