title: Firing ctrl+r, ctrl+a, ctrl+q events on a button click
body: <p>I need to fire the <kbd>Ctrl</kbd>+<kbd>R</kbd>, <kbd>Ctrl</kbd>+<kbd>A</kbd>, <kbd>Ctrl</kbd>+<kbd>Q</kbd> events when a user clicks on a button.</p>
  
  <p>I was working on the following code:</p>
  
  <pre><code>$(document).ready(function () {
      $('#Button1').click(function () {
          var evt = $.Event("keypress");
          evt.keyCode = 81;
          evt.ctrlKey = true;
          evt.shiftKey = true;
          $(document).trigger(evt);
      });
  });
  </code></pre>