Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's tough to use the arrow keys for JavaScript games. If you bind events to those keys, the web browser won't care and still use those keys to scroll. It's bad design since then you'll be scrolling and manipulating the game at the same time.

The reason that this isn't a problem for Flash is because Flash grabs and steals all keyboard and mouse focus away from the browser; not something anyone should re-implement in JavaScript.



Yup! I do most of my browsing with keys, and I can't tell you how many times I have hit CTRL+W repeatedly before realizing flash had the focus. Eww.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: