Browse Source

Moved CanFocus out of Responder and made non-virtual

Tig Kindel 1 year ago
parent
commit
9f292656e2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Terminal.Gui/Views/Toplevel.cs

+ 2 - 0
Terminal.Gui/Views/Toplevel.cs

@@ -130,6 +130,8 @@ public partial class Toplevel : View
         KeyBindings.Add (Key.B.WithCtrl, Command.PreviousView); // Unix
 #endif
         MouseClick += Toplevel_MouseClick;
+
+        CanFocus = true;
     }
 
     private void Toplevel_MouseClick (object sender, MouseEventEventArgs e)