Cmd/Ctrl keyboard remap on macOS breaks paste in Codex CLI input
Open 💬 1 comment Opened Jun 26, 2026 by brian-lou
Component
Codex CLI
Version
codex-cli 0.142.2
Environment
- macOS 15.7.4, build 24G517
- Apple Silicon arm64
- Terminal: VS Code integrated terminal
- macOS keyboard modifier keys are remapped so Control and Command are swapped
Description
When macOS modifier keys are swapped so the physical Control key acts as Command, pressing Ctrl+V to paste into the Codex CLI composer does not paste clipboard contents.
Instead, the input box receives the literal character v.
Expected behavior
Because macOS treats the remapped physical Ctrl+V as Cmd+V, Codex CLI should paste the clipboard contents into the input composer.
Actual behavior
Only v is inserted into the input box.
Reproduction steps
- On macOS, open System Settings and swap the Control and Command modifier keys.
- Start Codex CLI with
codex. - Copy text to the clipboard.
- Focus the Codex CLI input composer.
- Press the physical Ctrl+V key combination, which macOS maps to Cmd+V.
Notes
This may indicate the TUI is reading raw terminal key events without honoring macOS modifier remapping, or it is handling Ctrl+V before the terminal/OS paste mapping is applied.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗