Skip to content

Commit

Permalink
Fix keyboard tab navigation problems
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Feb 25, 2023
1 parent 44c6978 commit ed17727
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Terminal.Gui/Views/TileView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public TileView () : this (2)
/// <param name="tiles"></param>
public TileView (int tiles)
{
CanFocus = true;
RebuildForTileCount (tiles);
IgnoreBorderPropertyOnRedraw = true;
Border = new Border () {
Expand Down Expand Up @@ -409,15 +408,6 @@ public bool SetSplitterPos (int idx, Pos value)
return true;
}

/// <inheritdoc/>
public override bool OnEnter (View view)
{
Driver.SetCursorVisibility (CursorVisibility.Invisible);
if (!Tiles.Where (t => t.ContentView.HasFocus).Any ()) {
Tiles.FirstOrDefault ()?.ContentView.SetFocus ();
}
return base.OnEnter (view);
}

/// <inheritdoc/>
public override void Redraw (Rect bounds)
Expand Down

0 comments on commit ed17727

Please sign in to comment.