diff --git a/Terminal.Gui/Core/Toplevel.cs b/Terminal.Gui/Core/Toplevel.cs index c83eee343..69f75e3a3 100644 --- a/Terminal.Gui/Core/Toplevel.cs +++ b/Terminal.Gui/Core/Toplevel.cs @@ -221,7 +221,7 @@ namespace Terminal.Gui { old?.SetNeedsDisplay (); Focused?.SetNeedsDisplay (); } else { - FocusNearestView (SuperView?.Subviews, Direction.Forward); + FocusNearestView (SuperView?.TabIndexes, Direction.Forward); } return true; case Key.BackTab | Key.ShiftMask: @@ -234,7 +234,7 @@ namespace Terminal.Gui { old?.SetNeedsDisplay (); Focused?.SetNeedsDisplay (); } else { - FocusNearestView (SuperView?.Subviews?.Reverse(), Direction.Backward); + FocusNearestView (SuperView?.TabIndexes?.Reverse(), Direction.Backward); } return true; case Key.Tab | Key.CtrlMask: