Fix admin menu objects list (#28787)

This commit is contained in:
Leon Friedrich
2024-06-10 01:51:02 +12:00
committed by GitHub
parent fb1ab6469a
commit 8d52f6b617

View 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);
}