title: Do not scroll page down when spacebar is clicked?
body: <p>As you may know some browsers have this default functionality to scroll page down when spacebar is clicked. I usually like this feature, but due to nature of my website I need to get rid of it.</p>
  
  <p>I've been using</p>
  
  <pre><code>      window.onkeydown = function(e) {
            return !(e.keyCode == 32);
        };
  </code></pre>
  
  <p>which eats all spacebar functionality and gets the job done, however if user is typing in a comment or a search query and they press spacebar no space is added in a text as this functionality has been eaten up.</p>
  
  <p>So is there a way to disable just the scrolling part and leave all other functionality as it is?</p>