mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
input: proper optional entry handling
This commit is contained in:
@ -111,15 +111,11 @@ fn kitty(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const final_entry = entry_ orelse {
|
const entry = entry_ orelse return "";
|
||||||
// TODO: we need to look it up
|
|
||||||
return "";
|
|
||||||
};
|
|
||||||
|
|
||||||
const seq: KittySequence = seq: {
|
const seq: KittySequence = seq: {
|
||||||
var seq: KittySequence = .{
|
var seq: KittySequence = .{
|
||||||
.key = final_entry.code,
|
.key = entry.code,
|
||||||
.final = final_entry.final,
|
.final = entry.final,
|
||||||
.mods = KittyMods.fromInput(all_mods),
|
.mods = KittyMods.fromInput(all_mods),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user