macOS: Do not send control characters as UTF8 keyboard text

Fixes a regression where `ctrl+enter` was not encoding properly since
our input stack changes.
This commit is contained in:
Mitchell Hashimoto
2025-04-19 06:43:19 -07:00
parent 6a876ef8ec
commit 31b2ac4b79
2 changed files with 7 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ pub fn encode(
self: *const KeyEncoder,
buf: []u8,
) ![]const u8 {
// log.warn("KEYENCODER self={}", .{self.j});
// log.warn("KEYENCODER self={}", .{self.*});
if (self.kitty_flags.int() != 0) return try self.kitty(buf);
return try self.legacy(buf);
}