summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/PlatformWin32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinNoGUI/PlatformWin32.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/PlatformWin32.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/PlatformWin32.cpp b/Source/Core/DolphinNoGUI/PlatformWin32.cpp
index 7304332682..ff07698115 100644
--- a/Source/Core/DolphinNoGUI/PlatformWin32.cpp
+++ b/Source/Core/DolphinNoGUI/PlatformWin32.cpp
@@ -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;