mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Fixes #3424. v1 - Views should not force focus if they are not selected.
This commit is contained in:
@@ -792,7 +792,7 @@ namespace Terminal.Gui {
|
||||
listview.SetSource (searchset);
|
||||
listview.Height = CalculatetHeight ();
|
||||
|
||||
if (Subviews.Count > 0) {
|
||||
if (HasFocus && Subviews.Count > 0) {
|
||||
search.SetFocus ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user