Fix CanFocus being set to false on background after adding all the subviews.

This commit is contained in:
BDisp
2023-08-15 14:46:24 +01:00
parent 65851ad527
commit aa4f9c108f

View File

@@ -552,9 +552,7 @@ namespace Terminal.Gui {
///<inheritdoc/>
public override void Add (View view)
{
if (!CanFocus) {
CanFocus = true;
}
CanFocus = true;
AddMenuStatusBar (view);
base.Add (view);
}