Set focus to the search field

issue: MatterHackers/MCCentral#6029
Typo in Update Settings text
This commit is contained in:
LarsBrubaker 2020-08-31 19:10:10 -07:00
parent 85d59e2f09
commit 88bf857fa6
2 changed files with 8 additions and 2 deletions

View file

@ -267,7 +267,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
bool containerSupportsEdits = activeContainer is ILibraryWritableContainer;
//searchInput.Text = activeContainer.KeywordFilter;
// searchInput.Text = activeContainer.KeywordFilter;
breadCrumbWidget.SetContainer(activeContainer);
activeContainer.ContentChanged += UpdateStatus;
@ -438,6 +438,12 @@ namespace MatterHackers.MatterControl.PrintLibrary
this.AddChild(ResetButton);
}
public override void OnLoad(EventArgs args)
{
TextEditWidget.Focus();
base.OnLoad(args);
}
public override string Text
{
get => TextEditWidget.ActualTextEditWidget.Text;

View file

@ -174,7 +174,7 @@ Updating the default will not change any other overrides that you may have appli
currentText += ": " + category.Name + " > " + group.Name + " > " + settingData.PresentationName;
AddSetting(printer, currentText, setting.key, theme.SlightShade);
AddSetting(oemPrinter, "Will be update to:".Localize(), setting.key, Color.Transparent);
AddSetting(oemPrinter, "Will be updated to:".Localize(), setting.key, Color.Transparent);
var buttonContainer = new FlowLayoutWidget(FlowDirection.RightToLeft)
{