Ctrl-B toggles the sidebar while editing the prompt (should move cursor backward on macOS)

Resolved 💬 7 comments Opened Feb 5, 2026 by satococoa Closed Feb 11, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

260204.1342 (531)

What subscription do you have?

Pro

What issue are you seeing?

Summary

Ctrl-B triggers “Toggle Sidebar” instead of moving the cursor backward in text inputs. Cmd-B also triggers “Toggle Sidebar”.

Actual behavior

  • When focus is in the prompt input textarea, pressing Ctrl-B toggles the sidebar (instead of moving the cursor backward).

Impact

On macOS, Ctrl-B is a standard text-editing shortcut (move cursor backward) in text fields. Capturing it at the app level breaks expected editing behavior (especially for users who rely on Emacs-style shortcuts).

What steps can reproduce the bug?

  1. Open the Codex app on macOS.
  2. Click into a textarea so the caret is visible.
  3. Press Ctrl-B.
  4. Observe the sidebar toggles.
  5. Press Cmd-B.
  6. Observe the sidebar toggles as well.

Reproducibility: 100% (always)

What is the expected behavior?

  • When focus is in a text input/textarea, Ctrl-B should perform the default macOS behavior: move the cursor backward by one character.
  • App-level shortcuts (e.g., Toggle Sidebar) should not override standard text-editing shortcuts while typing in text fields.

Additional information

  • M2 Macbook Air
  • US Keyboard
  • macOS 26.2(25C56)

View original on GitHub ↗

7 Comments

etraut-openai contributor · 5 months ago

The Codex VS Code extension is built using the "web view" mechanism provided by VS Code. This is an unfortunate limitation of VS Code web views, not something that we can fix in the VS Code extension.

satococoa · 5 months ago

@etraut-openai
Thank you for looking into this.

However, this issue is not related to the VS Code extension — I reported it for the Codex app (macOS app).
Could you take another look? Thank you.

etraut-openai contributor · 5 months ago

Oh sorry, my bad. Reopening.

jottos · 5 months ago

This is so bad for a MAC user used to cmdline edit keys, that is renders the Codex App almost unusable

etraut-openai contributor · 5 months ago

This is now fixed in the latest release.

satococoa · 5 months ago

@etraut-openai
Confirmed! Thanks for the fix!

acevif · 2 hours ago

@etraut-openai
This appears to have regressed in the new unified ChatGPT desktop app.

I can reproduce it on version 26.715.52143. Removing the Command+B sidebar shortcut in Settings does not prevent Control+B from toggling the sidebar.

The new regression is being tracked in #33977. Could this issue be reopened or linked to #33977?

thanks