mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 22:32:50 +00:00
Revert ad01c1b614
This change broke key names for dead keys, because that depends on the effect on the global state of simulating two key presses. Issue found by CTest tests. Reverts #2018
This commit is contained in:
+2
-7
@@ -460,11 +460,6 @@ void _glfwUpdateKeyNamesWin32(void)
|
||||
{
|
||||
int key;
|
||||
BYTE state[256] = {0};
|
||||
UINT flags = 0;
|
||||
|
||||
// Avoid modifying the global key state if supported
|
||||
if (_glfwIsWindows10Version1607OrGreaterWin32())
|
||||
flags = (1 << 2);
|
||||
|
||||
memset(_glfw.win32.keynames, 0, sizeof(_glfw.win32.keynames));
|
||||
|
||||
@@ -494,13 +489,13 @@ void _glfwUpdateKeyNamesWin32(void)
|
||||
|
||||
length = ToUnicode(vk, scancode, state,
|
||||
chars, sizeof(chars) / sizeof(WCHAR),
|
||||
flags);
|
||||
0);
|
||||
|
||||
if (length == -1)
|
||||
{
|
||||
length = ToUnicode(vk, scancode, state,
|
||||
chars, sizeof(chars) / sizeof(WCHAR),
|
||||
flags);
|
||||
0);
|
||||
}
|
||||
|
||||
if (length < 1)
|
||||
|
||||
Reference in New Issue
Block a user