mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-12 16:48:11 +00:00
[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>
This commit is contained in:
parent
ed64732b73
commit
4740703d9d
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user