diff --git a/ModernWpf.Controls/ContentDialog/ContentDialog.cs b/ModernWpf.Controls/ContentDialog/ContentDialog.cs index e099c2d7..78cbdbbc 100644 --- a/ModernWpf.Controls/ContentDialog/ContentDialog.cs +++ b/ModernWpf.Controls/ContentDialog/ContentDialog.cs @@ -848,7 +848,7 @@ private void HandleKeyDown(KeyEventArgs e) button = PrimaryButton ?? SecondaryButton ?? CloseButton; } - if (button != null) + if (button != null && button.IsEnabled) { OnButtonClick(button, null); e.Handled = true;