From 3b2b2de1597e7565623cd78ef30dddf0b45ac053 Mon Sep 17 00:00:00 2001 From: Rael Gugelmin Cunha Date: Sat, 11 Nov 2017 12:46:15 -0200 Subject: [PATCH] Exit on Esc, pause on F10 --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index 5619689abc..9582facf2d 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -240,6 +240,10 @@ class PlatformX11 : public Platform case KeyPress: key = XLookupKeysym((XKeyEvent*)&event, 0); if (key == XK_Escape) + { + s_shutdown_requested.Set(); + } + else if (key == XK_F10) { if (Core::GetState() == Core::State::Running) {