mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-27 17:41:40 +00:00
macos: do not send UTF-8 PUA codepoints to key events
Fixes #7337 AppKit encodes functional keys as PUA codepoints. We don't want to send that down as valid text encoding for a key event because KKP uses that in particular to change the encoding with associated text. I think there may be a more specific solution to this by only doing this within the KKP encoding part of KeyEncoder but that was filled with edge cases and I didn't want to risk breaking anything else.
This commit is contained in:
@@ -83,6 +83,15 @@ pub const Flags = packed struct(u5) {
|
||||
report_all: bool = false,
|
||||
report_associated: bool = false,
|
||||
|
||||
/// Sets all modes on.
|
||||
pub const @"true": Flags = .{
|
||||
.disambiguate = true,
|
||||
.report_events = true,
|
||||
.report_alternates = true,
|
||||
.report_all = true,
|
||||
.report_associated = true,
|
||||
};
|
||||
|
||||
pub fn int(self: Flags) u5 {
|
||||
return @bitCast(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user