From 49a1ac96f4a1bcd40af0ed4f89e92aa8f74077db Mon Sep 17 00:00:00 2001 From: Alexey Chernyshov Date: Thu, 7 May 2020 15:37:49 +0300 Subject: [PATCH] Treat Shift + Backspace as Backspace --- CHANGELOG.md | 1 + alacritty/src/config/bindings.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d956ab..440b07a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Low resolution window decoration icon on Windows - Mouse bindings for additional buttons need to be specified as a number not a string - Don't hide cursor on modifier press with `mouse.hide_when_typing` enabled +- `Shift + Backspace` now sends `^?` instead of `^H` ### Fixed diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 74e1be3..41a0b1d 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -306,6 +306,7 @@ pub fn default_key_bindings() -> Vec { L, ModifiersState::CTRL, ~TermMode::VI; Action::Esc("\x0c".into()); Tab, ModifiersState::SHIFT, ~TermMode::VI; Action::Esc("\x1b[Z".into()); Back, ModifiersState::ALT, ~TermMode::VI; Action::Esc("\x1b\x7f".into()); + Back, ModifiersState::SHIFT, ~TermMode::VI; Action::Esc("\x7f".into()); Home, ModifiersState::SHIFT, ~TermMode::ALT_SCREEN; Action::ScrollToTop; End, ModifiersState::SHIFT, ~TermMode::ALT_SCREEN; Action::ScrollToBottom; PageUp, ModifiersState::SHIFT, ~TermMode::ALT_SCREEN; Action::ScrollPageUp;