Live data from Hacker News

Why keyboard shortcuts don't work on non-US layouts and how devs could fix it

tkainrad.dev

211–212 of 212 posts

Re: Why keyboard shortcuts don't work on non-US layouts and how devs could fix it

#211
post #35
post #28

As a kid, I remember being utterly confused, when most games with a console would have the key ` to open it. WTF is the key ` and where is it? For a kid it wasn't that easy to understand that there are such things as different keyboard layouts. Turns out that ` is a single key press to the left of the '1', in English, while it is a bit obscure character to write in other languages. In mine, you have º and ª in that p…

Also programming languages used it as an alias for exec. Even if you have a ` key, on some layouts (such as the Irish keyboard layout) it can be a weird key to type due to dead key behaviour, often requiring multiple presses to respond and eating the next keypress.

yeah.. i never use js template strings because of that frigging unusable backtick character. Ist so hard to type on my layout, that its just not worth it -_-

Re: Why keyboard shortcuts don't work on non-US layouts and how devs could fix it

#212
post #203

Earlier quoted context omitted.

I can't find any "AltGr dead keys" variant on the OSX I'm using at the moment, I'll check later on Linux. I don't have any keyboard with a key marked "AltGr" either btw :). However, the canadian english variant I'm using definitely has a ~ key and accepts alt+n for ñ. Concerning angle brackets they are at the same position as on a standard US layout. I assume that we are using different operating systems and that the…

> can't find any "AltGr dead keys" variant on the OSX I'm using at the moment I don't use OSX, sorry. Maybe try https://github.com/xv0x7c0/osx-us-altgr-intl > I don't have any keyboard with a key marked "AltGr" either btw :). That's the right alt (not to be confused with the alt right). > the canadian english variant I'm using definitely has a ~ key Can you type "ã" or "õ"? I'm not saying it's the optimal solution, i…

> That's the right alt (not to be confused with the alt right).

I laughed, thanks for that.

> Can you type "ã" or "õ"?

on OSX' Canadian English yes, AltGr+n followed by a/o.

On the other hand, after paying closer attention to the behavior of the layout with the same name on Linux, there are annoying discrepancies and "English (intl. with AltGr dead keys)" is indeed pretty nice for me too. Thanks for the pointer, I may adopt it too.

Post reply on HN