diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs index a2aa972625d..c5f8adbdea3 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButtonContainer.cs @@ -42,11 +42,12 @@ ActionButton MakeButton(int index) { var button = new ActionButton(_entity); - if (keys.TryGetValue(index, out var boundKey)) - { - button.KeyBind = boundKey; + if (!keys.TryGetValue(index, out var boundKey)) + return button; - var binding = _input.GetKeyBinding(boundKey); + button.KeyBind = boundKey; + if (_input.TryGetKeyBinding(boundKey, out var binding)) + { button.Label.Text = binding.GetKeyString(); }