]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/keylayouts.c: Ignore unknown keys.
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 21 Sep 2014 16:49:49 +0000 (18:49 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Sun, 21 Sep 2014 16:49:49 +0000 (18:49 +0200)
ChangeLog
grub-core/commands/keylayouts.c

index 163265bd033e1990dedd0c2f29ad99985c0161f6..6d4e295146df61b5704db7caeee61dec4fc84617 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index da04389e31712f5e5363f25d20ffa6c803a4f3c5..f4b7730208ab8ffafb1b0283294a140248839d7a 100644 (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);
   
-  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)
     {