Fix admin menu objects list (#28787)
This commit is contained in:
@@ -132,9 +132,7 @@ public sealed partial class ObjectsTab : Control
|
|||||||
var entry = new ObjectsTabEntry(info.Name, info.Entity, new StyleBoxFlat { BackgroundColor = backgroundColor });
|
var entry = new ObjectsTabEntry(info.Name, info.Entity, new StyleBoxFlat { BackgroundColor = backgroundColor });
|
||||||
button.ToolTip = $"{info.Name}, {info.Entity}";
|
button.ToolTip = $"{info.Name}, {info.Entity}";
|
||||||
|
|
||||||
// Add key binding event handler
|
button.OnKeyBindDown += args => OnEntryKeyBindDown?.Invoke(args, data);
|
||||||
entry.OnKeyBindDown += args => OnEntryKeyBindDown?.Invoke(args, data);
|
|
||||||
|
|
||||||
button.AddChild(entry);
|
button.AddChild(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user