From 7fca78ea17ce6bc343195015088cbc18f4ad769e Mon Sep 17 00:00:00 2001 From: Remigiusz Micielski Date: Mon, 26 Aug 2024 09:16:17 +0200 Subject: [PATCH] add ALT-BACKSPACE to crossterm's to_input_request --- src/backend/crossterm.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/crossterm.rs b/src/backend/crossterm.rs index 47dc149..9f130b0 100644 --- a/src/backend/crossterm.rs +++ b/src/backend/crossterm.rs @@ -41,7 +41,8 @@ pub fn to_input_request(evt: &CrosstermEvent) -> Option { (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),