mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-19 18:42:23 -07:00
prohibit DefWindowProc from running on syschars, for everything except alt+space
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user