How to prevent scrolling of window with libgdx gwt game

Viewed 763

I am exporting a gwt game from libgdx to Kongregate using the kongregate shell which creates a iframe and puts the game in it. From looking around, I found out a tidbit about putting window.focus() to let the game actually pick up the keyboard input but when i use the arrow keys, it scrolls the actual browser window as well making it very annoying.

is there any way to ignore browser when the iframe is in focus to avoid this?

Thanks

2 Answers
Related