* grub-core/commands/keylayouts.c: Ignore unknown keys.
This commit is contained in:
parent
2988a849fc
commit
7c378c3964
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/keylayouts.c: Ignore unknown keys.
|
||||
|
||||
2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/gmodule.pl.in: Accept newer binutils which output
|
||||
|
|
|
@ -173,8 +173,10 @@ grub_term_map_key (grub_keyboard_key_t code, int status)
|
|||
|
||||
key = map_key_core (code, status, &alt_gr_consumed);
|
||||
|
||||
if (key == 0 || key == GRUB_TERM_SHIFT)
|
||||
if (key == 0 || key == GRUB_TERM_SHIFT) {
|
||||
grub_printf ("Unknown key 0x%x detected\n", code);
|
||||
return GRUB_TERM_NO_KEY;
|
||||
}
|
||||
|
||||
if (status & GRUB_TERM_STATUS_CAPS)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue