Fixes #3424. v1 - Views should not force focus if they are not selected.

This commit is contained in:
BDisp
2024-04-22 00:00:54 +01:00
parent e444a5fd61
commit 2ba162405e
2 changed files with 5 additions and 1 deletions

View File

@@ -792,7 +792,7 @@ namespace Terminal.Gui {
listview.SetSource (searchset);
listview.Height = CalculatetHeight ();
if (Subviews.Count > 0) {
if (HasFocus && Subviews.Count > 0) {
search.SetFocus ();
}
}

View File

@@ -773,6 +773,10 @@ namespace Terminal.Gui {
var oldStep = currentStep;
currentStep = newStep;
if (currentStep is null) {
return false;
}
UpdateButtonsAndTitle ();
// Set focus to the nav buttons