mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-16 23:37:41 -05:00
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:
@@ -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