input: fix failing test on Linux

This commit is contained in:
Mitchell Hashimoto
2023-11-13 13:58:41 -08:00
parent b4d393fdcf
commit 63e106390f

View File

@ -344,6 +344,16 @@ fn legacyAltPrefix(
} }
} }
// If UTF8 isn't set, we will allow unshifted codepoints through.
if (self.event.unshifted_codepoint > 0) {
if (std.math.cast(
u8,
self.event.unshifted_codepoint,
)) |byte| {
return byte;
}
}
// Else, we can't figure out the byte to alt-prefix so we // Else, we can't figure out the byte to alt-prefix so we
// exit this handling. // exit this handling.
return null; return null;