mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
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:
@ -697,6 +697,9 @@ pub const Key = enum(c_int) {
|
|||||||
.{ ']', .right_bracket },
|
.{ ']', .right_bracket },
|
||||||
.{ '\\', .backslash },
|
.{ '\\', .backslash },
|
||||||
|
|
||||||
|
// Control characters
|
||||||
|
.{ '\t', .tab },
|
||||||
|
|
||||||
// Keypad entries. We just assume keypad with the kp_ prefix
|
// Keypad entries. We just assume keypad with the kp_ prefix
|
||||||
// so that has some special meaning. These must also always be last.
|
// so that has some special meaning. These must also always be last.
|
||||||
.{ '0', .kp_0 },
|
.{ '0', .kp_0 },
|
||||||
|
Reference in New Issue
Block a user