Lightweight coding agent that runs in your terminal
Rust
Fix `handle_shortcut_overlay_key` for cross-platform consistency (#7583)
Robby He28dcdb566ad0
diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rsindex 4eeeb4bcee..4deb5125c1 100644--- a/codex-rs/tui/src/bottom_pane/chat_composer.rs+++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs@@ -1504,14 +1504,9 @@ impl ChatComposer {return false;}- let toggles = matches!(- key_event,- KeyEvent {- code: KeyCode::Char('?'),- modifiers: KeyModifiers::NONE,- ..- } if self.is_empty()- );+ let toggles = matches!(key_event.code, KeyCode::Char('?'))+ && !has_ctrl_or_alt(key_event.modifiers)+ && self.is_empty();if !toggles {return false;