DEV Community

[Comment from a deleted post]
Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Not sure if this really counts, but I use a custom keyboard layout on most of my systems that works like a standard US international keyboard layout except that I've inverted the behavior of the dead keys.

On a normal US international keyboard, you have an AltGr key in place of right Alt which will result in different characters when held (for example a becomes á, o becomes ó, y becomes ü, s becomes ß, etc). In addition to this though, you have a couple of what are known as 'dead keys'. When you hit one of these keys, it modifies (depending on the exact layout) either the next or the last letter typed, and you have to hit them twice in a row to type the normal character. In particular, ', ", `, ~ and ^ behave like this.

In my case though, everything I'm likely to need to type is already handled via AltGr, so the dead keys just get in my way 99% of the time, especially considering that quotation marks are very commonly used when programming. So I just modify the layout so that the dead keys only behave like dead keys when I'm holding AltGr, and otherwise type their normal characters instead.