mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-22 00:51:23 +00:00
input: remove translated in capi (#12490)
Follow up for a3462dd2bd
<img width="884" height="255" alt="image"
src="https://github.com/user-attachments/assets/da4e4dd5-e645-40ed-8e9c-0ed8c9aee1c4"
/>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = .{
|
||||
|
||||
Reference in New Issue
Block a user