-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Fix AltGr/backslash input on Windows Codex terminal #6720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
e9766e3 to
11e4ac9
Compare
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| self.insert_str(&c.to_string()); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add trailing comma after new match arm
The new Ctrl+Alt branch in TextArea::input is missing a trailing comma after the closing }. Because more match arms follow, Rust requires that comma, so the crate will no longer compile after this commit. Please add the comma after the block so the code builds again.
Useful? React with 👍 / 👎.
|
Thanks for the contribution. Please fix the syntax error (missing comma). |
11e4ac9 to
9c09031
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
This bug was at the top of my list to investigate this week, but you beat me to it. This fix is going to make a lot of codex users happy! Thanks again for the contribution. |
Summary
backslash and other characters via AltGr insert correctly.
advance the cursor.
Motivation
On US/UK keyboard layouts, backslash is produced by a plain key, so Ctrl+Alt handling is never exercised and the
bug isn’t visible. On many non‑US layouts (e.g., German), backslash and other symbols require AltGr, which terminals
report as Ctrl+Alt+. Our textarea previously filtered these chords like navigation bindings, so AltGr input was
dropped on affected layouts. This change treats AltGr chords as literal input so backslash and similar symbols work on
Windows terminals.
This fixes multiple reported Issues where the \ symbol got cut off. Like:
C:\Users\Admin
became
C:UsersAdmin