Skip to content

Commit

Permalink
add ALT-BACKSPACE to crossterm's to_input_request
Browse files Browse the repository at this point in the history
  • Loading branch information
micielski authored and sayanarijit committed Aug 26, 2024
1 parent bdf2cba commit 7fca78e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/crossterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ pub fn to_input_request(evt: &CrosstermEvent) -> Option<InputRequest> {

(Char('w'), KeyModifiers::CONTROL)
| (Char('d'), KeyModifiers::META)
| (Backspace, KeyModifiers::META) => Some(DeletePrevWord),
| (Backspace, KeyModifiers::META)
| (Backspace, KeyModifiers::ALT) => Some(DeletePrevWord),

(Delete, KeyModifiers::CONTROL) => Some(DeleteNextWord),
(Char('k'), KeyModifiers::CONTROL) => Some(DeleteTillEnd),
Expand Down

0 comments on commit 7fca78e

Please sign in to comment.