* grub-core/commands/keylayouts.c: Ignore unknown keys.

This commit is contained in:
Vladimir Serbinenko committed 2014-09-21 18:49:49 +02:00
1 parent 2988a849fc
commit 7c378c3964
2 files changed
+7 -1

No files matched your search

+4
View File
@@ -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> 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gmodule.pl.in: Accept newer binutils which output * grub-core/gmodule.pl.in: Accept newer binutils which output
+3 -1
View File
@@ -173,8 +173,10 @@ grub_term_map_key (grub_keyboard_key_t code, int status)
key = map_key_core (code, status, &alt_gr_consumed); 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); grub_printf ("Unknown key 0x%x detected\n", code);
return GRUB_TERM_NO_KEY;
}
if (status & GRUB_TERM_STATUS_CAPS) if (status & GRUB_TERM_STATUS_CAPS)
{ {