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 {
// TODO: we need to look it up
return "";
};
const entry = entry_ orelse return "";
const seq: KittySequence = seq: {
var seq: KittySequence = .{
.key = final_entry.code,
.final = final_entry.final,
.key = entry.code,
.final = entry.final,
.mods = KittyMods.fromInput(all_mods),
};