basically I have this Tetris game, with an all new GUI and all cool features. Which I transferred into a plug-in for a CMS. This means you can just drag and drop Tetris on your page!
But the problem I have now, is that it uses keyboard functions: arrow keys, space-bar, ( p & n ).
This means when there is a scrollbar on the page, the page also triggers the default scrolling behavior! Arrows down and up scroll the page a little bit, and Space-bar gets to the bottom of a page.
Is there any way to stop keyboard input ( spacebar and arrows) from scrolling a page ?
Maybe if I create a function that scrolls to the game every millisecond ( high CPU usage ? ) or create a function that keydown doesn't trigger any default behaviour.
Or is it a lot easier by just adding focus to the element ? ( think blue-border in safari )