Ver código fonte

Moved CanFocus out of Responder and made non-virtual

Tig Kindel 1 ano atrás
pai
commit
9f292656e2
1 arquivos alterados com 2 adições e 0 exclusões
  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)