Prevent default browser action for SPACEBAR and ARROW keys
authorMegaBrutal <code+git@megabrutal.com>
Mon, 18 Apr 2016 13:53:34 +0000 (13:53 +0000)
committerMegaBrutal <code+git@megabrutal.com>
Mon, 18 Apr 2016 13:53:34 +0000 (13:53 +0000)
commit04304fefef7ff34c73500efe16610e5c412fcfb5
treeadd7d94bf33a24047f387861606d63010e9932af
parent8365e5f779829456056345af2c145d35c4e14e30
Prevent default browser action for SPACEBAR and ARROW keys

SPACEBAR scrolls the page down on some browsers, and ARROW keys
may also cause the page to scroll. Now the game prevents the
browser from performing these default actions when the game is
in focus.

Also, I removed an unused optional parameter from putText,
because Internet Explorer was complaining about it. The game
still doesn't work with IE though, because SVGs are not displayed.

modified:   shapeshift.js
shapeshift.js