From 4779eebdceb242afe6d6f188cbd0385a9b631994 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 1 Sep 2022 17:50:22 -0700 Subject: [PATCH] fix shift-enter --- 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 da730e62968d6e3d15ae860068b56aab2c55a22c..7e0c6e3d17ce8c3ca1d26859abf1217430f9be0f 100644 --- a/crates/terminal/src/mappings/keys.rs +++ b/crates/terminal/src/mappings/keys.rs @@ -57,6 +57,7 @@ pub fn to_esc_str(keystroke: &Keystroke, mode: &TermMode) -> Option { ("tab", Modifiers::None) => Some("\x09".to_string()), ("escape", Modifiers::None) => Some("\x1b".to_string()), ("enter", Modifiers::None) => Some("\x0d".to_string()), + ("enter", Modifiers::Shift) => Some("\x0d".to_string()), ("backspace", Modifiers::None) => Some("\x7f".to_string()), //Interesting escape codes ("tab", Modifiers::Shift) => Some("\x1b[Z".to_string()),