Просмотр исходного кода

Moved CanFocus out of Responder and made non-virtual

Tig Kindel 1 год назад
Родитель
Сommit
9f292656e2
1 измененных файлов с 2 добавлено и 0 удалено
  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)