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.
This commit is contained in:
Jeremy Rose
2025-07-31 17:13:36 -07:00
committed by GitHub
parent ea69a1d72f
commit d787434aa8

View File

@@ -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);