2
0
Camilla Berglund 12 жил өмнө
parent
commit
36de6d3ce3
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      src/win32_window.c

+ 3 - 1
src/win32_window.c

@@ -204,7 +204,9 @@ static int translateKey(WPARAM wParam, LPARAM lParam)
             if (PeekMessage(&next, NULL, 0, 0, PM_NOREMOVE))
             {
                 if (next.message == WM_KEYDOWN ||
-                    next.message == WM_SYSKEYDOWN)
+                    next.message == WM_SYSKEYDOWN ||
+                    next.message == WM_KEYUP ||
+                    next.message == WM_SYSKEYUP)
                 {
                     if (next.wParam == VK_MENU &&
                         (next.lParam & 0x01000000) &&