Skip to content

Commit 1118a0f

Browse files
Synchronize changes from 1.6 master branch [ci skip]
93963a9 Fix ALT + F4 not working (PR #4237) caabf63 Visual Studio Update
2 parents 3ff63f3 + 93963a9 commit 1118a0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
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)