feat: support for international keyboards

Resolved 💬 2 comments Opened Oct 9, 2025 by eduardosantos1989 Closed Dec 31, 2025

What feature would you like to see?

Please add this as match arm because for non-us key layout most special characters and clipboard is not working as expected:
codex-rs\tui\src\bottom_pane\textarea.rs

    pub fn input(&mut self, event: KeyEvent) {
        match event {
...
            KeyEvent { code: KeyCode::Char(c), modifiers, .. }
                if cfg!(windows)
                    && modifiers.contains(KeyModifiers::ALT)
                    && modifiers.contains(KeyModifiers::CONTROL)
                    // Do not treat common Ctrl+Alt letter shortcuts as text insertion.
                    && !matches!(c, 'h') =>
            {
                self.insert_str(&c.to_string())
            }
            _o => {
                #[cfg(feature = "debug-logs")]
                tracing::debug!("Unhandled key event in TextArea: {:?}", _o);
            }
        }

Additional information

_No response_

View original on GitHub ↗

2 Comments

eduardosantos1989 · 10 months ago
tobiaswaggoner · 9 months ago

Makes we wonder how many people outside the US are actually using Codex CLI. Seems like a showstopper to me. As a longtime claude code and gemini CLI user I thought I`d give OpenAI another shot, but this stopped me immediately. This fix seems straightforward, but the problem is around for months now. Do I miss something? Is there a solution apart from switching to a US keyboard layout?