* term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
a key after CapsLock or NumLock. It's just a qemu bug.
This commit is contained in:
parent
df26241939
commit
0677694455
2 changed files with 5 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
|
||||
a key after CapsLock or NumLock. It's just a qemu bug.
|
||||
|
||||
2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
|
||||
|
|
|
@ -181,9 +181,6 @@ grub_at_keyboard_getkey_noblock (void)
|
|||
switch (code)
|
||||
{
|
||||
case CAPS_LOCK:
|
||||
/* Caps lock sends scan code twice. Get the second one and discard it. */
|
||||
while (grub_keyboard_getkey () == -1);
|
||||
|
||||
at_keyboard_status ^= KEYBOARD_STATUS_CAPS_LOCK;
|
||||
led_status ^= KEYBOARD_LED_CAPS;
|
||||
keyboard_controller_led (led_status);
|
||||
|
@ -194,9 +191,6 @@ grub_at_keyboard_getkey_noblock (void)
|
|||
key = -1;
|
||||
break;
|
||||
case NUM_LOCK:
|
||||
/* Num lock sends scan code twice. Get the second one and discard it. */
|
||||
while (grub_keyboard_getkey () == -1);
|
||||
|
||||
at_keyboard_status ^= KEYBOARD_STATUS_NUM_LOCK;
|
||||
led_status ^= KEYBOARD_LED_NUM;
|
||||
keyboard_controller_led (led_status);
|
||||
|
|
Loading…
Reference in a new issue