fix alt key handling in win32 message loop

This commit is contained in:
jacob 2024-08-30 19:50:18 -05:00
parent 987842e130
commit 657d8206fc

View File

@ -1015,7 +1015,9 @@ INTERNAL LRESULT CALLBACK win32_window_proc(HWND hwnd, UINT msg, WPARAM wparam,
/* Keyboard buttons */
case WM_SYSKEYUP:
case WM_SYSKEYDOWN: {
result = DefWindowProcW(hwnd, msg, wparam, lparam);
if (LOWORD(wparam) != VK_MENU) {
result = DefWindowProcW(hwnd, msg, wparam, lparam);
}
} FALLTHROUGH;
case WM_KEYUP:
case WM_KEYDOWN: {