From d787434aa81c097f242b39c1101ec7f09afa8a72 Mon Sep 17 00:00:00 2001 From: Jeremy Rose <172423086+nornagon-openai@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:13:36 -0700 Subject: [PATCH] fix: always send KeyEvent, we now check kind in the handler (#1772) https://github.com/openai/codex/pull/1754 and #1771 fixed the same thing in colliding ways. --- codex-rs/tui/src/app.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index 7454a1ca..24b2301b 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -96,9 +96,7 @@ impl App<'_> { if let Ok(event) = crossterm::event::read() { match event { crossterm::event::Event::Key(key_event) => { - if key_event.kind == crossterm::event::KeyEventKind::Press { - app_event_tx.send(AppEvent::KeyEvent(key_event)); - } + app_event_tx.send(AppEvent::KeyEvent(key_event)); } crossterm::event::Event::Resize(_, _) => { app_event_tx.send(AppEvent::RequestRedraw);