From 54cc62ccf9fa77b25c5b1207e17e440469731e11 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 28 Mar 2020 18:32:20 -0700 Subject: [PATCH] ctrl-space should send NUL --- term/src/terminalstate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term/src/terminalstate.rs b/term/src/terminalstate.rs index df1701dd9..71eae3a08 100644 --- a/term/src/terminalstate.rs +++ b/term/src/terminalstate.rs @@ -549,7 +549,7 @@ impl TerminalState { } Char(c) - if (c.is_ascii_alphanumeric() || c.is_ascii_punctuation()) + if (c.is_ascii_alphanumeric() || c.is_ascii_punctuation() || c == ' ') && mods.contains(KeyModifiers::CTRL) => { let c = ((c as u8) & 0x1f) as char;