Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Terminal.Gui/Views/ComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ private void Reset (bool keepSearchText = false)
listview.SetSource (searchset);
listview.Height = CalculatetHeight ();

if (Subviews.Count > 0) {
if (HasFocus && Subviews.Count > 0) {
search.SetFocus ();
}
}
Expand Down
4 changes: 4 additions & 0 deletions Terminal.Gui/Windows/Wizard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,10 @@ public bool GoToStep (WizardStep newStep)
var oldStep = currentStep;
currentStep = newStep;

if (currentStep is null) {
return false;
}

UpdateButtonsAndTitle ();

// Set focus to the nav buttons
Expand Down
4 changes: 4 additions & 0 deletions UnitTests/Views/ViewTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,10 @@ public void KeyPress_Handled_To_True_Prevents_Changes ()

Application.Run ();

// Ensures cleaning any keystroke.
// This was conflicting with the TestVKPacket unit test
Console.MockKeyPresses.Clear ();

// Shutdown must be called to safely clean up Application if Init has been called
Application.Shutdown ();
}
Expand Down