input: proper optional entry handling

This commit is contained in:
Mitchell Hashimoto
2023-08-17 09:52:44 -07:00
parent 6493da0dd3
commit 78080f0cd6

View File

@ -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),
}; };