From: Michael Brown Date: Tue, 27 Mar 2012 19:55:19 +0000 (+0100) Subject: [console] Ignore unexpected keysyms when generating keyboard maps X-Git-Tag: v1.20.1~1874 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4740703d9dc1dab286eb2d69473dd15da3a79da4;p=thirdparty%2Fipxe.git [console] Ignore unexpected keysyms when generating keyboard maps 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 --- diff --git a/src/util/genkeymap.pl b/src/util/genkeymap.pl index d556df275..6487cd796 100755 --- a/src/util/genkeymap.pl +++ b/src/util/genkeymap.pl @@ -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 );