From: Vladimir Serbinenko Date: Sun, 21 Sep 2014 16:49:49 +0000 (+0200) Subject: * grub-core/commands/keylayouts.c: Ignore unknown keys. X-Git-Tag: 2.02-beta3~617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c378c3964a19ae6da0648ca18cf37308b072629;p=thirdparty%2Fgrub.git * grub-core/commands/keylayouts.c: Ignore unknown keys. --- diff --git a/ChangeLog b/ChangeLog index 163265bd0..6d4e29514 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-09-21 Vladimir Serbinenko + + * grub-core/commands/keylayouts.c: Ignore unknown keys. + 2014-09-21 Vladimir Serbinenko * grub-core/gmodule.pl.in: Accept newer binutils which output diff --git a/grub-core/commands/keylayouts.c b/grub-core/commands/keylayouts.c index da04389e3..f4b773020 100644 --- a/grub-core/commands/keylayouts.c +++ b/grub-core/commands/keylayouts.c @@ -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) {