From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 9 Jun 2024 13:51:02 +0000 (+1200) Subject: Fix admin menu objects list (#28787) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=8d52f6b617757eae801c325fb1f75e14f626a393;p=space-station-14.git Fix admin menu objects list (#28787) --- diff --git a/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs b/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs index 90559707f9..c8606ca80d 100644 --- a/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs @@ -132,9 +132,7 @@ public sealed partial class ObjectsTab : Control var entry = new ObjectsTabEntry(info.Name, info.Entity, new StyleBoxFlat { BackgroundColor = backgroundColor }); button.ToolTip = $"{info.Name}, {info.Entity}"; - // Add key binding event handler - entry.OnKeyBindDown += args => OnEntryKeyBindDown?.Invoke(args, data); - + button.OnKeyBindDown += args => OnEntryKeyBindDown?.Invoke(args, data); button.AddChild(entry); }