prohibit DefWindowProc from running on syschars, for everything except alt+space

This commit is contained in:
Ryan Fleury
2025-05-09 10:51:03 -07:00
parent 5fce46baaf
commit 1c4ad499dc
+9 -1
View File
@@ -489,7 +489,15 @@ os_w32_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_SYSCHAR:
{
result = DefWindowProcW(hwnd, uMsg, wParam, lParam);
WORD vk_code = LOWORD(wParam);
if(vk_code == VK_SPACE)
{
result = DefWindowProcW(hwnd, uMsg, wParam, lParam);
}
else
{
result = 0;
}
}break;
case WM_CHAR: