Add Enter key support for primary/Accept button

- Issue MatterHackers/MCCentral#5489
Inconsistent keyboard support in wizard pages
This commit is contained in:
jlewin 2019-05-13 15:38:53 -07:00
parent 1f5bdfcf3b
commit 2b8d794232
9 changed files with 29 additions and 12 deletions

View file

@ -244,8 +244,8 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
DialogWindow.Show(
new LoadFilamentWizard(printer, extruderIndex, showAlreadyLoadedButton: false));
};
theme.ApplyPrimaryActionStyle(loadFilamentButton);
this.AcceptButton = loadFilamentButton;
this.AddPageAction(loadFilamentButton);
}