Hacker News new | past | comments | ask | show | jobs | submit login

Someone who goes out of their way to learn other keyboard layouts should probably go the extra step in having a way to map keys for stuff like this.



This is a terribly ignorant statement. Plenty of people live outside of English-speaking countries where different keyboard layouts are used.


I apologize, the context made me think along the lines of Dvorak.

EDIT: Even so, most OSes now make it relatively easy to switch layouts based on country, so I feel as though my point still stands.


"most OSes now make it relatively easy to switch layouts"

The problem is that the physical layout is unchanged, so you need to memorize the keys...


If you have to look at your keyboard to write things that is unefficient anyway? I never look at my keyboard unless I have to type some weird character that is never normally used.


That's an extremely simplistic look at the problem. The issue isn't looking at the keyboard, it's the extra mental effort of doing the keymapping every time you run into a new application which has stupid defaults that don't take alternative layouts into account.


That is true. Wouldn't mapping specific keys (physical, on the keyboard) to actions/events better than mapping actions to the characters pressed? I thought that was how things worked now.

Nobody using Dvorak will want WASD as movement controls for a game for example, but they will most likely want to use the same keys, right?


The closest semantics I found were the location hints: https://developer.mozilla.org/en/DOM/KeyboardEvent#Key_locat...

The problem is, only the keyboard hardware knows where the keys are physically located. The OS knows the layout and could probably expose the QWERTY-equivalent keys, which would be sufficient for not-too-exotic keyboards, but I don't know if that is available to applications in a way that is sufficiently portable for browsers to expose it.

Chromium seems to expose this to Pepper plugins; here is the bug for making it an experimental js api: https://code.google.com/p/chromium/issues/detail?id=119362 Getting the lowlevel keycode is nonportable (I didn't find the implementation, but found switch cases and fallbacks if it doesn't exist). Conversion to a portable usb-hid-equivalent keycode is left as a stub in the patch that introduced the Pepper feature.


On azerty, WASD ens up like your qwerty's ZQSD. It's mind-bending to try to play this way, way worse than HJKL.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: