Skip to content

Conversation

@Akrelion45
Copy link
Contributor

Summary

  • Treat AltGr chords (Ctrl+Alt) as literal character input in the Codex TUI textarea so Windows terminals that report
    backslash and other characters via AltGr insert correctly.
  • Add regression test altgr_ctrl_alt_char_inserts_literal to ensure Ctrl+Alt char events append the character and
    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

@github-actions
Copy link

github-actions bot commented Nov 16, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Akrelion45
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

@Akrelion45 Akrelion45 force-pushed the fix-altgr-literal-char branch 2 times, most recently from e9766e3 to 11e4ac9 Compare November 16, 2025 01:07
github-actions bot added a commit that referenced this pull request Nov 16, 2025
@etraut-openai
Copy link
Collaborator

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

Comment on lines 258 to 259
self.insert_str(&c.to_string());
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge 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 👍 / 👎.

@etraut-openai
Copy link
Collaborator

Thanks for the contribution. Please fix the syntax error (missing comma).

@etraut-openai etraut-openai added the needs-response Additional information is requested label Nov 16, 2025
@Akrelion45 Akrelion45 force-pushed the fix-altgr-literal-char branch from 11e4ac9 to 9c09031 Compare November 16, 2025 13:05
@Akrelion45
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ 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".

@etraut-openai etraut-openai removed the needs-response Additional information is requested label Nov 17, 2025
@etraut-openai etraut-openai merged commit 702238f into openai:main Nov 17, 2025
44 of 46 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2025
@etraut-openai
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants