Consider Alt + Backspace for deletion too
* Update terminal.rs
Fixes
* Update terminal.rs
* Fix indentation
@@ -783,8 +783,10 @@ pub fn resolve_key_event(key: &KeyEvent) -> Option<&str> {
Key::Backspace => {
Some(if key.mods.ctrl() {
"\x08" // backspace
+ } else if key.mods.alt() {
+ "\x1b\x7f"
} else {
- "\x7f" // DEL
+ "\x7f"
})
}
