diff --git a/Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs b/Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs index 1b22f9460a..17cbcc38ac 100644 --- a/Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs +++ b/Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs @@ -16,6 +16,7 @@ using Content.Shared.Input; using JetBrains.Annotations; using Robust.Client.Audio; using Robust.Client.Graphics; +using Robust.Client.Input; using Robust.Client.Player; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controllers; @@ -37,6 +38,7 @@ public sealed class AHelpUIController: UIController, IOnSystemChanged ToggleWindow())) - .Register(); + _input.SetInputCommand(ContentKeyFunctions.OpenAHelp, + InputCmdHandler.FromDelegate(_ => ToggleWindow())); } public void OnSystemUnloaded(BwoinkSystem system) { - CommandBinds.Unregister(); + _input.SetInputCommand(ContentKeyFunctions.OpenAHelp, null); DebugTools.Assert(_bwoinkSystem != null); _bwoinkSystem!.OnBwoinkTextMessageRecieved -= ReceivedBwoink;