Merge pull request #3637 from pchote/ripley-f7u12

Restore alt-f4 for windows users only.
This commit is contained in:
Matthias Mailänder
2013-08-04 03:06:03 -07:00

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;
}