Change summary
assets/keymaps/default-linux.json | 7 +------
crates/terminal/src/mappings/keys.rs | 1 +
2 files changed, 2 insertions(+), 6 deletions(-)
Detailed changes
@@ -642,12 +642,7 @@
"pagedown": ["terminal::SendKeystroke", "pagedown"],
"escape": ["terminal::SendKeystroke", "escape"],
"enter": ["terminal::SendKeystroke", "enter"],
- "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"],
-
- // Some nice conveniences
- "ctrl-backspace": ["terminal::SendText", "\u0015"],
- "ctrl-right": ["terminal::SendText", "\u0005"],
- "ctrl-left": ["terminal::SendText", "\u0001"]
+ "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"]
}
}
]
@@ -54,6 +54,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode, alt_is_meta: bool) ->
("backspace", AlacModifiers::None) => Some("\x7f".to_string()),
//Interesting escape codes
("tab", AlacModifiers::Shift) => Some("\x1b[Z".to_string()),
+ ("backspace", AlacModifiers::Ctrl) => Some("\x08".to_string()),
("backspace", AlacModifiers::Alt) => Some("\x1b\x7f".to_string()),
("backspace", AlacModifiers::Shift) => Some("\x7f".to_string()),
("space", AlacModifiers::Ctrl) => Some("\x00".to_string()),