Skip to content

Commit db30a6f

Browse files
authored
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.
1 parent ecb3880 commit db30a6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

codex-rs/tui/src/bottom_pane/textarea.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ impl TextArea {
230230
code: KeyCode::Backspace,
231231
modifiers: KeyModifiers::NONE,
232232
..
233+
}
234+
| KeyEvent {
235+
code: KeyCode::Char('h'),
236+
modifiers: KeyModifiers::CONTROL,
237+
..
233238
} => self.delete_backward(1),
234239
KeyEvent {
235240
code: KeyCode::Delete,

0 commit comments

Comments
 (0)