Merge pull request #2675 from Mailaender/simple-hotkey-config

user-configurable hotkey via in-game settings
This commit is contained in:
Chris Forbes
2013-03-02 00:01:01 -08:00
7 changed files with 210 additions and 23 deletions

View File

@@ -266,7 +266,7 @@ namespace OpenRA.Mods.Cnc.Widgets
public override bool HandleKeyPress(KeyInput e)
{
if (e.Event != KeyInputEvent.Down) return false;
if (e.KeyName == "tab")
if (e.KeyName == Game.Settings.Keys.CycleTabsKey)
{
Sound.PlayNotification(null, "Sounds", "ClickSound", null);
SelectNextTab(e.Modifiers.HasModifier(Modifiers.Shift));