mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 09:18:01 +01:00
Since FocusNearestView method deals with navigation and focus is better use TabIndexes instead.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user