summaryrefslogtreecommitdiffstats
path: root/src/util/genkeymap.pl
diff options
context:
space:
mode:
authorMichael Brown2012-03-27 21:55:19 +0200
committerMichael Brown2012-03-27 21:59:47 +0200
commit4740703d9dc1dab286eb2d69473dd15da3a79da4 (patch)
tree9d05fb2900805bbe20a6718cd330a49adc1606bb /src/util/genkeymap.pl
parent[crypto] Add an explicit "RSA signature incorrect" error message (diff)
downloadipxe-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/genkeymap.pl')
-rwxr-xr-xsrc/util/genkeymap.pl6
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 );