Add a Hotkey class for user-configurable keys. Fixes #3779.
Users can now define and use hotkeys that include modifiers (ctrl/meta/shift/alt).
This commit is contained in:
@@ -177,7 +177,7 @@ namespace OpenRA.Widgets
|
||||
}
|
||||
|
||||
// Disable pausing for spectators
|
||||
else if (KeycodeExts.DisplayString(e.Key) == Game.Settings.Keys.PauseKey && world.LocalPlayer != null)
|
||||
else if (Hotkey.FromKeyInput(e) == Game.Settings.Keys.PauseKey && world.LocalPlayer != null)
|
||||
world.SetPauseState(!world.Paused);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user