Skip to content

Commit 93963a9

Browse files
authored
Fix ALT + F4 not working (PR #4237)
1 parent caabf63 commit 93963a9

File tree

2 files changed

+1958
-1951
lines changed

2 files changed

+1958
-1951
lines changed

Client/core/CMessageLoopHook.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,13 @@ LRESULT CALLBACK CMessageLoopHook::ProcessMessage(HWND hwnd, UINT uMsg, WPARAM w
518518
return true;
519519
}
520520

521+
// Process ALT + F4
522+
if (uMsg == WM_SYSKEYDOWN && wParam == VK_F4)
523+
{
524+
// Tell windows to handle this message.
525+
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
526+
}
527+
521528
// If we handled mouse steering, don't let GTA.
522529
// if ( !CCore::GetSingleton ().GetMouseControl()->ProcessMouseMove ( uMsg, wParam, lParam ) )
523530
// Call GTA's window procedure.

0 commit comments

Comments
 (0)