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:
1 parent
81192d96cf
commit
7ef7b6e3e9
1 file changed
+5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user