make hotkey user-configurable via in-game settings

This commit is contained in:
Matthias Mailänder
2013-02-09 14:08:36 +01:00
parent e71135b511
commit 1f99b1ec8e
7 changed files with 228 additions and 23 deletions

View File

@@ -145,7 +145,7 @@ namespace OpenRA.Mods.RA.Widgets
public override bool HandleKeyPress(KeyInput e)
{
if (e.Event == KeyInputEvent.Up) return false;
if (e.KeyName == "tab")
if (e.KeyName == Game.Settings.Keys.CycleTabsKey)
{
TabChange(e.Modifiers.HasModifier(Modifiers.Shift));
return true;