diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/RemoveFromControlGroupHotkeyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/RemoveFromControlGroupHotkeyLogic.cs index c5a6826a3c..163d4271f7 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/RemoveFromControlGroupHotkeyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/RemoveFromControlGroupHotkeyLogic.cs @@ -25,7 +25,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic.Ingame [ObjectCreator.UseCtor] public RemoveFromControlGroupHotkeyLogic(Widget widget, ModData modData, World world, Dictionary logicArgs) - : base(widget, modData, "RemoveFromControlGroupKey", "WORLD_KEYHANDLER", logicArgs) + : base(widget, modData, "RemoveFromControlGroupKey", "PLAYER_KEYHANDLER", logicArgs) { selection = world.Selection; this.world = world; diff --git a/mods/cnc/chrome/ingame.yaml b/mods/cnc/chrome/ingame.yaml index d71f48caae..59ae68267f 100644 --- a/mods/cnc/chrome/ingame.yaml +++ b/mods/cnc/chrome/ingame.yaml @@ -10,8 +10,7 @@ Container@INGAME_ROOT: TakeScreenshotKey: TakeScreenshot MuteAudioKey: ToggleMute LogicKeyListener@WORLD_KEYHANDLER: - Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, RemoveFromControlGroupHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic - RemoveFromControlGroupKey: RemoveFromControlGroup + Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic CycleBasesKey: CycleBase CycleProductionActorsKey: CycleProductionBuildings CycleHarvestersKey: CycleHarvesters @@ -1162,6 +1161,9 @@ Container@PLAYER_WIDGETS: BookmarkSaveKeyPrefix: MapBookmarkSave BookmarkRestoreKeyPrefix: MapBookmarkRestore BookmarkKeyCount: 4 + LogicKeyListener@PLAYER_KEYHANDLER: + Logic: RemoveFromControlGroupHotkeyLogic + RemoveFromControlGroupKey: RemoveFromControlGroup ControlGroups@CONTROLGROUPS: SelectGroupKeyPrefix: ControlGroupSelect CreateGroupKeyPrefix: ControlGroupCreate diff --git a/mods/common/chrome/ingame.yaml b/mods/common/chrome/ingame.yaml index e90afa85c1..a4faab3df2 100644 --- a/mods/common/chrome/ingame.yaml +++ b/mods/common/chrome/ingame.yaml @@ -10,8 +10,7 @@ Container@INGAME_ROOT: TakeScreenshotKey: TakeScreenshot MuteAudioKey: ToggleMute LogicKeyListener@WORLD_KEYHANDLER: - Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, RemoveFromControlGroupHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic - RemoveFromControlGroupKey: RemoveFromControlGroup + Logic: CycleBasesHotkeyLogic, CycleProductionActorsHotkeyLogic, CycleHarvestersHotkeyLogic, JumpToLastEventHotkeyLogic, JumpToSelectedActorsHotkeyLogic, ResetZoomHotkeyLogic, TogglePlayerStanceColorHotkeyLogic, CycleStatusBarsHotkeyLogic, PauseHotkeyLogic, SelectUnitsByTypeHotkeyLogic, SelectAllUnitsHotkeyLogic CycleBasesKey: CycleBase CycleProductionActorsKey: CycleProductionBuildings CycleHarvestersKey: CycleHarvesters diff --git a/mods/common/hotkeys/control-groups.yaml b/mods/common/hotkeys/control-groups.yaml index 7a09da1f9e..0b4e7e174b 100644 --- a/mods/common/hotkeys/control-groups.yaml +++ b/mods/common/hotkeys/control-groups.yaml @@ -251,4 +251,4 @@ ControlGroupJumpTo10: NUMBER_0 Alt RemoveFromControlGroup: Description: Remove from control group Types: ControlGroups - Contexts: Player, Spectator + Contexts: Player diff --git a/mods/d2k/chrome/ingame-player.yaml b/mods/d2k/chrome/ingame-player.yaml index 14806a4ecc..a9b7e3dccc 100644 --- a/mods/d2k/chrome/ingame-player.yaml +++ b/mods/d2k/chrome/ingame-player.yaml @@ -2,6 +2,9 @@ Container@PLAYER_WIDGETS: Logic: LoadIngameChatLogic Children: Container@CHAT_ROOT: + LogicKeyListener@PLAYER_KEYHANDLER: + Logic: RemoveFromControlGroupHotkeyLogic + RemoveFromControlGroupKey: RemoveFromControlGroup ControlGroups@CONTROLGROUPS: SelectGroupKeyPrefix: ControlGroupSelect CreateGroupKeyPrefix: ControlGroupCreate diff --git a/mods/ra/chrome/ingame-player.yaml b/mods/ra/chrome/ingame-player.yaml index 79452b8183..c0b16945ab 100644 --- a/mods/ra/chrome/ingame-player.yaml +++ b/mods/ra/chrome/ingame-player.yaml @@ -2,6 +2,9 @@ Container@PLAYER_WIDGETS: Logic: LoadIngameChatLogic Children: Container@CHAT_ROOT: + LogicKeyListener@PLAYER_KEYHANDLER: + Logic: RemoveFromControlGroupHotkeyLogic + RemoveFromControlGroupKey: RemoveFromControlGroup ControlGroups@CONTROLGROUPS: SelectGroupKeyPrefix: ControlGroupSelect CreateGroupKeyPrefix: ControlGroupCreate diff --git a/mods/ts/chrome/ingame-player.yaml b/mods/ts/chrome/ingame-player.yaml index 489a6a7ee3..357eeca592 100644 --- a/mods/ts/chrome/ingame-player.yaml +++ b/mods/ts/chrome/ingame-player.yaml @@ -9,6 +9,9 @@ Container@PLAYER_WIDGETS: DecreaseDepthPreviewContrastKey: DecreaseDepthPreviewContrast IncreaseDepthPreviewOffsetKey: IncreaseDepthPreviewOffset DecreaseDepthPreviewOffsetKey: DecreaseDepthPreviewOffset + LogicKeyListener@PLAYER_KEYHANDLER: + Logic: RemoveFromControlGroupHotkeyLogic + RemoveFromControlGroupKey: RemoveFromControlGroup ControlGroups@CONTROLGROUPS: SelectGroupKeyPrefix: ControlGroupSelect CreateGroupKeyPrefix: ControlGroupCreate