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

As a Dvorak user, all of these JS games with their hardcoded keys are impossible to play without changing my layout back to Qwerty.

1,2,3 + arrow keys would be a better choice for sure.



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: