title: C#: How to make pressing enter in a text box trigger a button, yet still allow shortcuts such as "Ctrl+A" to get through?
body: <p>Sorry for the long title, but I couldn't think of another way to put it.</p>
  
  <p>I have this:</p>
  
  <pre><code>    private void textBoxToSubmit_KeyDown(object sender, KeyEventArgs e)
      {
          if (e.KeyCode == Keys.Enter)
          {
              buttonSubmit_Click((object)sender, (EventArgs)e);
          }
      }
  </code></pre>
  
  <p>... in order to make pressing enter in the text box trigger the "submit" button. However, this also prevents shortcuts from going through. (not quite sure what it has to do with that, maybe only multi-key combos?)</p>
  
  <p>ShortcutsEnabled is set to true.</p>
  
  <p>Thanks in advance!</p>