Merge pull request #14511 from Ma-Rang/pr/nogui-escape-win32

NoGUI: Add Escape key to request emulation shutdown on Windows
This commit is contained in:
Jordan Woyak
2026-03-26 07:06:36 -05:00
committed by GitHub

View File

@@ -197,6 +197,11 @@ LRESULT PlatformWin32::WndProc(const HWND hwnd, const UINT msg, const WPARAM wPa
}
break;
case WM_KEYDOWN:
if (wParam == VK_ESCAPE)
platform->RequestShutdown();
break;
case WM_CLOSE:
platform->RequestShutdown();
break;