From c78760381218a984a9f6c493f4fd52163d1fc666 Mon Sep 17 00:00:00 2001 From: Jeremy Rose <172423086+nornagon-openai@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:27:44 -0400 Subject: [PATCH] ctrl+arrows also move words (#1949) this was removed at some point, but this is a common keybind for word left/right. --- codex-rs/tui/src/bottom_pane/textarea.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs index 8e6e8b07..b9908790 100644 --- a/codex-rs/tui/src/bottom_pane/textarea.rs +++ b/codex-rs/tui/src/bottom_pane/textarea.rs @@ -300,14 +300,14 @@ impl TextArea { // Option/Right -> Alt+Right (next word end) KeyEvent { code: KeyCode::Left, - modifiers: KeyModifiers::ALT, + modifiers: KeyModifiers::ALT | KeyModifiers::CONTROL, .. } => { self.set_cursor(self.beginning_of_previous_word()); } KeyEvent { code: KeyCode::Right, - modifiers: KeyModifiers::ALT, + modifiers: KeyModifiers::ALT | KeyModifiers::CONTROL, .. } => { self.set_cursor(self.end_of_next_word());