diff options
author | Michael Brown | 2012-03-27 21:55:19 +0200 |
---|---|---|
committer | Michael Brown | 2012-03-27 21:59:47 +0200 |
commit | 4740703d9dc1dab286eb2d69473dd15da3a79da4 (patch) | |
tree | 9d05fb2900805bbe20a6718cd330a49adc1606bb /src/util | |
parent | [crypto] Add an explicit "RSA signature incorrect" error message (diff) | |
download | ipxe-4740703d9dc1dab286eb2d69473dd15da3a79da4.tar.gz ipxe-4740703d9dc1dab286eb2d69473dd15da3a79da4.tar.xz ipxe-4740703d9dc1dab286eb2d69473dd15da3a79da4.zip |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-x | src/util/genkeymap.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/genkeymap.pl b/src/util/genkeymap.pl index d556df27..6487cd79 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 ); |