diff --git a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs index fe9b1de..8d19349 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/CustomControls/CustomButton.cs @@ -153,6 +153,13 @@ public class CustomButton : Drawable Invalidate(); } + protected override void OnKeyDown(KeyEventArgs e) + { + base.OnKeyDown(e); + if (e.KeyData == Keys.Enter && HasFocus) + OnClick(null); + } + /// /// Event raised when the mouse is released over this control's bounding box. ///