From 971753074bd3bd79ff208232f3165e74e1e6f5fb Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Mon, 27 Apr 2026 13:39:33 +0200 Subject: [PATCH] input: remove translated in capi Follow up for a3462dd2bd541af6372855917c6ccb5643aeda93 --- include/ghostty.h | 1 - src/input/Binding.zig | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/ghostty.h b/include/ghostty.h index 598ce675b..b099741fc 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -364,7 +364,6 @@ typedef enum { } ghostty_input_trigger_tag_e; typedef union { - ghostty_input_key_e translated; ghostty_input_key_e physical; uint32_t unicode; // catch_all has no payload diff --git a/src/input/Binding.zig b/src/input/Binding.zig index 62a4e39ac..52ab82e93 100644 --- a/src/input/Binding.zig +++ b/src/input/Binding.zig @@ -2615,9 +2615,8 @@ pub const Set = struct { /// Get an entry for the given key event. This will attempt to find /// a binding using multiple parts of the event in the following order: /// - /// 1. Translated key (event.key) - /// 2. Physical key (event.physical_key) - /// 3. Unshifted Unicode codepoint (event.unshifted_codepoint) + /// 1. Physical key (event.physical_key) + /// 2. Unshifted Unicode codepoint (event.unshifted_codepoint) /// pub fn getEvent(self: *const Set, event: KeyEvent) ?Entry { var trigger: Trigger = .{