Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Fix Alacritty key bindings (#11782)
CharlesChen08230a096bf531dc
diff --git a/crates/terminal/src/mappings/keys.rs b/crates/terminal/src/mappings/keys.rsindex ca5defd23ff..250e0c5e5ce 100644--- a/crates/terminal/src/mappings/keys.rs+++ b/crates/terminal/src/mappings/keys.rs@@ -56,6 +56,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode, alt_is_meta: bool) ->("tab", AlacModifiers::Shift) => Some("\x1b[Z".to_string()),("backspace", AlacModifiers::Alt) => Some("\x1b\x7f".to_string()),("backspace", AlacModifiers::Shift) => Some("\x7f".to_string()),+ ("space", AlacModifiers::Ctrl) => Some("\x00".to_string()),("home", AlacModifiers::Shift) if mode.contains(TermMode::ALT_SCREEN) => {Some("\x1b[1;2H".to_string())}