mirror of https://github.com/ipxe/ipxe.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 <mcb30@ipxe.org>pull/6/head
parent
ed64732b73
commit
4740703d9d
|
@ -124,8 +124,10 @@ sub keysym_to_ascii {
|
||||||
return unless $keysym;
|
return unless $keysym;
|
||||||
|
|
||||||
# Sanity check
|
# 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
|
# Extract type and value
|
||||||
my $type = ( $keysym >> 8 );
|
my $type = ( $keysym >> 8 );
|
||||||
|
|
Loading…
Reference in New Issue