CA-216752: Not all wizards progress through to the next page by pressing the Enter key

- Added SelectDefaultControl() to more wizard pages

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-12-21 13:33:04 +00:00
parent 508f638b3a
commit 0115461f66
6 changed files with 32 additions and 0 deletions

View File

@ -101,6 +101,12 @@ namespace XenAdmin.Wizards.BugToolWizardFiles
base.PageLeave(direction, ref cancel);
}
public override void SelectDefaultControl()
{
if (string.IsNullOrEmpty(m_textBoxLocation.Text))
m_textBoxLocation.Select();
}
public string OutputFile
{
get

View File

@ -109,6 +109,11 @@ namespace XenAdmin.Wizards.BugToolWizardFiles
CancelAction();
}
public override void SelectDefaultControl()
{
flickerFreeListBox1.Select();
}
public List<Host> SelectedHosts { private get; set; }
public IEnumerable<Capability> CapabilityList { private get; set; }

View File

@ -82,6 +82,12 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
if (SrWizardType.UUID != null)
listBoxCifsSRs.SetMustSelectUUID(SrWizardType.UUID);
}
public override void SelectDefaultControl()
{
CifsServerPathTextBox.Select();
}
#endregion

View File

@ -108,6 +108,11 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.comboBoxCifsSharename.Items.AddRange(add_srs.ToArray());
}
public override void SelectDefaultControl()
{
comboBoxCifsSharename.Select();
}
#endregion
#region Accessors

View File

@ -230,6 +230,11 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
return Helpers.DundeeOrGreater(Connection) ? Messages.WIZARD_BUTTON_NEXT : Messages.NEWSR_LVMOHBA_NEXT_TEXT;
}
public override void SelectDefaultControl()
{
dataGridView.Select();
}
#endregion
#region Event handlers

View File

@ -89,6 +89,11 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
nfsVersionLabel.Visible = nfsVersionSelectorTableLayoutPanel.Visible = Helpers.DundeeOrGreater(Connection);
}
public override void SelectDefaultControl()
{
NfsServerPathTextBox.Select();
}
#endregion
private void UpdateButtons()