mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
input: fix failing test on Linux
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user