diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index 7286816195..6afd990e7c 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -1143,7 +1143,7 @@ impl ChatComposer { } fn is_send_immediately_key(&self, key_event: &KeyEvent) -> bool { - if key_event.kind != KeyEventKind::Press { + if !matches!(key_event.kind, KeyEventKind::Press | KeyEventKind::Repeat) { return false; } let is_enter = matches!( diff --git a/codex-rs/tui2/src/bottom_pane/chat_composer.rs b/codex-rs/tui2/src/bottom_pane/chat_composer.rs index 2496b631b8..e163a41046 100644 --- a/codex-rs/tui2/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui2/src/bottom_pane/chat_composer.rs @@ -1077,7 +1077,7 @@ impl ChatComposer { } fn is_send_immediately_key(&self, key_event: &KeyEvent) -> bool { - if key_event.kind != KeyEventKind::Press { + if !matches!(key_event.kind, KeyEventKind::Press | KeyEventKind::Repeat) { return false; } let is_enter = matches!(