From 8c3d2f6eb6a99c6ddfc8cb92d56cf0fab991c4e7 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 18 Mar 2022 10:42:14 -0700 Subject: [PATCH] windows: make repeated dead key handling consistent with other apps On Windows in FRA layout, `^^SPACE` results in `^^SPACE`, whereas on Linux it results in `^SPACE`. We were doing the latter instead of the former. Let's just be consistent with other windows apps. closes: #1729 closes: #1730 --- window/src/os/windows/window.rs | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rs index 8d866bbf4..0945aaf9c 100644 --- a/window/src/os/windows/window.rs +++ b/window/src/os/windows/window.rs @@ -1875,18 +1875,25 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option + inner.events.dispatch(WindowEvent::KeyEvent(key.clone())); return Some(0); }