Pagination jQuery next and previous control with keyboard - .trigger('click') doesn't work
<p>I am working on pagination.</p>

<p>To help a user to change pages with keyboard short-keys, instead of clicking a mouse, I came up with a jQuery solution that catches user keyboard events with <code>CTRL + →</code> and <code>CTRL+ ←</code></p>

<pre><code>$(document).keydown(function(event) {
  if (event.ctrlKey) { // if ctrl is being held
      var keycode = event.keyCode ? event.keyCode : event.which;
        if(keycode === 39) { // for rightwards arrow (for leftwards arrow keycode === 37)
           window.open($('#pagination li.next a').attr('href'), '_parent'); // open the next link
            }
  }
});
</code></pre>

<p>My question is why it doesn't work with regular <code>.trigger('click')</code>, like this:</p>

<pre><code>$('#pagination li.next a').trigger('click');
</code></pre>
