2 ms·
probably: if (event.type === 'keypress') { event.preventDefault(); doSomethingElse(); }
by malandrew 14y ago
probably:
if (event.type === 'keypress') {
event.preventDefault();
doSomethingElse();
}
- slinkyavenger 14y agoI don't think the author is talking about the spacebar being disabled entirely, at least that hasn't been my experience. What I've observed is that the space bar fails to act as a complete page-down - it only moves the page by lines.