From db30a6f5d86650ae7c5a3d40975c7c4e9daf98af Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Tue, 19 Aug 2025 08:00:29 +0900 Subject: [PATCH] Fix #2391 Add Ctrl+H as backspace keyboard shortcut (#2412) This pull request resolves #2391. ctrl + h is not assigned to any other operations at this moment, and this feature request sounds valid to me. If we don't prefer having this, please feel free to close this. --- codex-rs/tui/src/bottom_pane/textarea.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs index 33cdbbbc..029ffc85 100644 --- a/codex-rs/tui/src/bottom_pane/textarea.rs +++ b/codex-rs/tui/src/bottom_pane/textarea.rs @@ -230,6 +230,11 @@ impl TextArea { code: KeyCode::Backspace, modifiers: KeyModifiers::NONE, .. + } + | KeyEvent { + code: KeyCode::Char('h'), + modifiers: KeyModifiers::CONTROL, + .. } => self.delete_backward(1), KeyEvent { code: KeyCode::Delete,