codex icon indicating copy to clipboard operation
codex copied to clipboard

feat: support for international keyboards

Open eduardosantos1989 opened this issue 1 year ago • 2 comments

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

eduardosantos1989 avatar Oct 09 '25 12:10 eduardosantos1989

https://github.com/openai/codex/issues/4253

eduardosantos1989 avatar Oct 09 '25 12:10 eduardosantos1989

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?

tobiaswaggoner avatar Nov 14 '25 07:11 tobiaswaggoner