Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix #2391 Add Ctrl+H as backspace keyboard shortcut (#2412)

Kazuhiro Seradb30a6f5d866
diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs
index 33cdbbbc1d..029ffc8590 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,