diff --git a/src/main.c b/src/main.c index a159a4c..da1d820 100644 --- a/src/main.c +++ b/src/main.c @@ -1098,6 +1098,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return 0; } } + if (wParam == VK_MENU) + { + if ((GetAsyncKeyState(VK_RMENU) & 0x8000) && GetAsyncKeyState(VK_RCONTROL) & 0x8000) + { + mouse_unlock(); + return 0; + } + } break; case WM_KEYUP: