title: Is it possible to catch CTRL+W shortcut and prevent tab closing?
body: <pre><code>$(window).on("keydown", function (e) {
      alert(e.keyCode);
  });
  </code></pre>
  
  <p><kbd>W</kbd> has <code>87</code> key code. I also know that <code>e.ctrlKey</code> is <code>true</code> if <kbd>Ctrl</kbd> is pressed in that moment.</p>
  
  <p>Is possible to catch the <kbd>Ctrl</kbd> + <kbd>W</kbd> key press and prevent tab closing?</p>
  
  <p>I tried:</p>
  
  <pre><code>$(window).on("keydown", function (e) {
      if (e.keyCode === 87 &amp;&amp; e.ctrlKey) {
          return false;
      }
  });
  </code></pre>
  
  <p>But it seems that browser shortcut has priority in this case and the tab is closed.</p>
  
  <p>I am searching for a  solution: if it's not possible via JavaScript, maybe a browser add-on can do this.</p>