NoGUI: Add Escape key to close emulation on Windows

PlatformX11 already handles XK_Escape to trigger RequestShutdown().
Add the equivalent WM_KEYDOWN / VK_ESCAPE handler to PlatformWin32
for parity.
This commit is contained in:
Ma-Rang
2026-03-18 17:21:42 -05:00
parent 81192d96cf
commit 7ef7b6e3e9

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;