From c96396bd2f99dfc1076e543e39ffa7e1f55cd171 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 7 Apr 2022 06:47:15 -0700 Subject: [PATCH] input: normalize_ctrl shouldn't turn CTRL-Tab into Ctrl-i I'm not sure that we strictly want/need this normalization function any more, but I'm hesitant to blanket remove it without having time to really investigate further. cc: @CIAvash --- wezterm-input-types/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-input-types/src/lib.rs b/wezterm-input-types/src/lib.rs index 5d753374e..2bcd7b8c2 100644 --- a/wezterm-input-types/src/lib.rs +++ b/wezterm-input-types/src/lib.rs @@ -1041,7 +1041,7 @@ fn normalize_shift(key: KeyCode, modifiers: Modifiers) -> (KeyCode, Modifiers) { fn normalize_ctrl(key: KeyCode, modifiers: Modifiers) -> (KeyCode, Modifiers) { if modifiers.contains(Modifiers::CTRL) { if let KeyCode::Char(c) = key { - if (c as u32) < 0x20 { + if c != '\t' && (c as u32) < 0x20 { let de_ctrl = ((c as u8) | 0x40) as char; return (KeyCode::Char(de_ctrl.to_ascii_lowercase()), modifiers); }