parent
8769d32202
commit
971753074b
|
|
@ -364,7 +364,6 @@ typedef enum {
|
||||||
} ghostty_input_trigger_tag_e;
|
} ghostty_input_trigger_tag_e;
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
ghostty_input_key_e translated;
|
|
||||||
ghostty_input_key_e physical;
|
ghostty_input_key_e physical;
|
||||||
uint32_t unicode;
|
uint32_t unicode;
|
||||||
// catch_all has no payload
|
// 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
|
/// 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:
|
/// a binding using multiple parts of the event in the following order:
|
||||||
///
|
///
|
||||||
/// 1. Translated key (event.key)
|
/// 1. Physical key (event.physical_key)
|
||||||
/// 2. Physical key (event.physical_key)
|
/// 2. Unshifted Unicode codepoint (event.unshifted_codepoint)
|
||||||
/// 3. Unshifted Unicode codepoint (event.unshifted_codepoint)
|
|
||||||
///
|
///
|
||||||
pub fn getEvent(self: *const Set, event: KeyEvent) ?Entry {
|
pub fn getEvent(self: *const Set, event: KeyEvent) ?Entry {
|
||||||
var trigger: Trigger = .{
|
var trigger: Trigger = .{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue