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.
This commit is contained in:
Mitchell Hashimoto
2023-12-17 20:14:41 -08:00
parent 7ae45b522a
commit c97f6ac027

View File

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