title: MaterialDesignInXamlToolkit Dialog Boxes do not closed by pressing the ENTER key
body: <p>I am using MaterialDesignInXamlToolkit for WPF. I am trying to close Dialogs by pressing the ENTIRE key.</p>
  
  <p>Here is my DialogHost:</p>
  
  <pre><code>&lt;materialDesign:DialogHost x:Name="dialog_CONNECT"
                                                 Grid.Column="0"
                                                 HorizontalAlignment="Stretch"
                                                 VerticalAlignment="Center"&gt;
                          &lt;materialDesign:DialogHost.DialogContent&gt;
                              &lt;StackPanel Margin="16"&gt;
                                  &lt;TextBlock x:Name="textBlock_CONNECTED_DIALOG" /&gt;
                                  &lt;StackPanel Orientation="Horizontal" HorizontalAlignment="Center" &gt;
                                      &lt;Button Style="{StaticResource MaterialDesignFlatButton}"
                                              **IsDefault="True"**
                                              Margin="0 8 8 0"
                                              Content="OK"
                                              Command="materialDesign:DialogHost.CloseDialogCommand"/&gt;
  
                                  &lt;/StackPanel&gt;
                              &lt;/StackPanel&gt;
                          &lt;/materialDesign:DialogHost.DialogContent&gt;
  
                          &lt;Button x:Name="button_CONNECT" Content="CONNECT"
                                  Style="{StaticResource MaterialDesignRaisedDarkButton}"  
                                  Grid.Column="0"
                                  IsDefault="True"
                                  Margin="8 0 0 0"
                                  VerticalAlignment="Center"
                                  Click="onClickConnect"/&gt;
  
                      &lt;/materialDesign:DialogHost&gt;
  </code></pre>
  
  <p>In the code-behind I provide to open the dialog when I click on <em>button_CONNECT</em> (setting dialog_CONNECT.IsOpen = true).</p>
  
  <p>Why if I now press the ENTIRE key the dialog box does not close? </p>