From a514adfec0972551ec9683f2431748b522576147 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 29 May 2021 10:23:41 -0700 Subject: [PATCH] windows: avoid ctrl normalization in the common case in https://github.com/wez/wezterm/issues/767 CTRL-Tab was getting incorrectly normalized to CTRL-i; that normalization is valid (Tab is actually equivalent to CTRL-i as far as unix terminals are concerned) but unwanted at this layer. I suspect that this change will come back to haunt me in the future, as keyboard input is a bit of a zoo. --- window/src/os/windows/window.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rs index a5dfd4469..4f40c76e6 100644 --- a/window/src/os/windows/window.rs +++ b/window/src/os/windows/window.rs @@ -1543,7 +1543,6 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option Option "WM_DEADCHAR", _ => "WAT", }; - log::error!( + log::trace!( "{} c=`{}` repeat={} scan={} is_extended={} alt_pressed={} was_down={} \ releasing={} IME={} dead_pending={:?}", label, @@ -1572,7 +1571,6 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option Option