mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-16 11:10:14 -08:00
prohibit DefWindowProc from running on syschars, for everything except alt+space
This commit is contained in:
1 parent
5fce46baaf
commit
1c4ad499dc
1 file changed
+9
-1
@@ -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