mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
feat(tui): support shift-letter vim bindings across terminal variants
Make shifted letter bindings robust when terminals report uppercase letters without explicit SHIFT modifiers. This updates keybinding matching so bindings like `shift-i`, `shift-a`, and `shift-o` also match `I`, `A`, and `O` event forms, and adds regression tests covering Vim normal-mode actions for line-start insert, line-end append, and open-line-above with shift-only bindings.
This commit is contained in:
committed by
Felipe Coury
parent
f0b70188a7
commit
eb2275a64a
@@ -104,6 +104,9 @@ Compatibility detail:
|
||||
Some actions intentionally ship with multiple default bindings because terminals
|
||||
can report modifier combinations differently. Examples include `?` vs `shift-?`
|
||||
and certain `ctrl` chords with optional `shift`.
|
||||
Shifted letter bindings are also matched compatibly when terminals report them
|
||||
as uppercase characters without an explicit `shift` modifier (for example
|
||||
`shift-i` matching `I`).
|
||||
|
||||
## Resolution and precedence
|
||||
|
||||
|
||||
Reference in New Issue
Block a user