From 2d62bffe41ce8dcd15a62123397a4d25ca9f0c1d Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 2 Jan 2022 16:49:42 -0700 Subject: [PATCH] window: fix CTRL+C with Russian keyboard on windows Turns out that we had the same issue on Windows refs: #678 --- docs/changelog.md | 2 +- window/src/os/windows/window.rs | 36 ++++++++++++++++++++++++--------- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 8847c1c2e..a96d58b80 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -17,7 +17,7 @@ As features stabilize some brief notes about them will accumulate here. #### Fixed * Regression that broke fontconfig aliases such as `"monospace"` [#1250](https://github.com/wez/wezterm/pull/1250) -* X11/Wayland: CTRL+C in non-latin keyboard layouts wouldn't send CTRL-C [#678](https://github.com/wez/wezterm/issues/678) +* Windows/X11/Wayland: CTRL+C in non-latin keyboard layouts wouldn't send CTRL-C [#678](https://github.com/wez/wezterm/issues/678) ### 20220101-133340-7edc5b5a diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rs index 8906ebf19..6f726faba 100644 --- a/window/src/os/windows/window.rs +++ b/window/src/os/windows/window.rs @@ -1978,15 +1978,33 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option