]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[console] Ignore unexpected keysyms when generating keyboard maps
authorMichael Brown <mcb30@ipxe.org>
Tue, 27 Mar 2012 19:55:19 +0000 (20:55 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 27 Mar 2012 19:59:47 +0000 (20:59 +0100)
I am unable to find any definitive documentation on how Linux keyboard
symbols work.  In the absence of any documentation, I'm going to
assume that unexpected keysyms are harmless and should be ignored.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genkeymap.pl

index d556df27521e3146c4457fe98832c23e6081b9b1..6487cd7966ac1bbc5181f9005febefae3daf5a85 100755 (executable)
@@ -124,8 +124,10 @@ sub keysym_to_ascii {
   return unless $keysym;
 
   # Sanity check
-  die "Unexpected keysym ".sprintf ( "0x%04x\n", $keysym )."\n"
-      if $keysym & 0xf000;
+  if ( $keysym & 0xf000 ) {
+    warn "Unexpected keysym ".sprintf ( "0x%04x", $keysym )."\n";
+    return;
+  }
 
   # Extract type and value
   my $type = ( $keysym >> 8 );