]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix admin menu objects list (#28787)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sun, 9 Jun 2024 13:51:02 +0000 (01:51 +1200)
committerGitHub <noreply@github.com>
Sun, 9 Jun 2024 13:51:02 +0000 (09:51 -0400)
Content.Client/Administration/UI/Tabs/ObjectsTab/ObjectsTab.xaml.cs

index 90559707f92c79e0b0823524cc7ea92ef605bb13..c8606ca80d5ea17dd11659794f449d3b73cedf8a 100644 (file)
@@ -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);
     }