From 40408e731e859ecaf03919aaa32f22ff41869522 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Wed, 25 Sep 2024 22:01:33 +0000 Subject: [PATCH] Fix sending alt-enter in terminal (#18363) --- crates/terminal/src/mappings/keys.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/terminal/src/mappings/keys.rs b/crates/terminal/src/mappings/keys.rs index e760db3616..2d4fe4c62e 100644 --- a/crates/terminal/src/mappings/keys.rs +++ b/crates/terminal/src/mappings/keys.rs @@ -51,6 +51,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode, alt_is_meta: bool) -> ("escape", AlacModifiers::None) => Some("\x1b".to_string()), ("enter", AlacModifiers::None) => Some("\x0d".to_string()), ("enter", AlacModifiers::Shift) => Some("\x0d".to_string()), + ("enter", AlacModifiers::Alt) => Some("\x1b\x0d".to_string()), ("backspace", AlacModifiers::None) => Some("\x7f".to_string()), //Interesting escape codes ("tab", AlacModifiers::Shift) => Some("\x1b[Z".to_string()),