title: javascript capture browser shortcuts (ctrl+t/n/w)
body: <p>Is it possible to capture these shortcuts?</p>
  
  <ul>
  <li><kbd>Ctrl</kbd>+<kbd>N</kbd> </li>
  <li><kbd>Ctrl</kbd>+<kbd>T</kbd> </li>
  <li><kbd>Ctrl</kbd>+<kbd>W</kbd></li>
  </ul>
  
  <p>I tried this but it doesn't work:</p>
  
  <pre><code>$(window).keydown(function(event) {
    console.log(event.keyCode);
    event.preventDefault();
  });
  </code></pre>
  
  <p>When I press <kbd>T</kbd> it shows <code>84</code> in the console, but if I press <kbd>Ctrl</kbd>+<kbd>T</kbd> it shows nothing, and opens a new tab.</p>
  
  <p>I would like to capture these shortcuts and prevent any browser action.</p>