Restore Alt-f4 quit shortcut for Windows users.

This commit is contained in:
Paul Chote
2013-08-04 21:50:42 +12:00
parent cc5390c289
commit 6fc2e11ad4

View File

@@ -115,7 +115,14 @@ namespace OpenRA.Renderer.SdlCommon
MultiTapCount = MultiTapDetection.DetectFromKeyboard(keyName)
};
inputHandler.OnKeyInput(keyEvent);
// Special case workaround for windows users
if (e.key.keysym.sym == Sdl.SDLK_F4 && mods.HasModifier(Modifiers.Alt) &&
Platform.CurrentPlatform == PlatformType.Windows)
{
OpenRA.Game.Exit();
}
else
inputHandler.OnKeyInput(keyEvent);
break;
}