From c97f6ac027fdb545ac2a7879abc4c289e2d4bada Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 17 Dec 2023 20:14:41 -0800 Subject: [PATCH] input: translate '\t' to Key.tab This allows bindings with `tab` to work properly on Linux. The issue is that in the key translation, we weren't mapping this and thought it was invalid IME input so we were ignoring it. --- src/input/key.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/key.zig b/src/input/key.zig index 26e7e056f..159871847 100644 --- a/src/input/key.zig +++ b/src/input/key.zig @@ -697,6 +697,9 @@ pub const Key = enum(c_int) { .{ ']', .right_bracket }, .{ '\\', .backslash }, + // Control characters + .{ '\t', .tab }, + // Keypad entries. We just assume keypad with the kp_ prefix // so that has some special meaning. These must also always be last. .{ '0', .kp_0 },