Explorar o código

Moved CanFocus out of Responder and made non-virtual

Tig Kindel hai 1 ano
pai
achega
9f292656e2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)