Browse Source

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

BDisp 2 years ago
parent
commit
aa4f9c108f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Terminal.Gui/Core/Toplevel.cs

+ 1 - 3
Terminal.Gui/Core/Toplevel.cs

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