From 78080f0cd6eed50e7ee07f22654e27f62ddc06b0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 17 Aug 2023 09:52:44 -0700 Subject: [PATCH] input: proper optional entry handling --- src/input/KeyEncoder.zig | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/input/KeyEncoder.zig b/src/input/KeyEncoder.zig index 10ccfeb41..c7f2842b2 100644 --- a/src/input/KeyEncoder.zig +++ b/src/input/KeyEncoder.zig @@ -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), };