From 2a6d25d1aa11c70cf03e5721105beb5f3cc78e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 5 May 2022 21:47:34 +0200 Subject: [PATCH] Win32: Add comment clarifying use of ToUnicode Fixes #2100 (cherry picked from commit 62e175ef9fae75335575964c845a302447c012c7) --- src/win32_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32_init.c b/src/win32_init.c index 18f60d38..885f32fa 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -503,6 +503,8 @@ void _glfwUpdateKeyNamesWin32(void) if (length == -1) { + // This is a dead key, so we need a second simulated key press + // to make it output its own character (usually a diacritic) length = ToUnicode(vk, scancode, state, chars, sizeof(chars) / sizeof(WCHAR), 0);