r/programming • • Jun 25 '15

Atom 1.0

http://blog.atom.io/2015/06/25/atom-1-0.html
1.1k Upvotes

632 comments sorted by

View all comments

Show parent comment

2

u/wcoenen Jun 26 '15

Why does an editor even need to concern itself with key maps? Translating key strokes into unicode code points seems like something that is already handled by the OS. That's why OSes have keyboard configuration settings.

3

u/x-skeww Jun 26 '15

It's their shortcut handling code. It can't differentiate between Ctrl+Alt+X and AltGr+X.

So, when you use AltGr + some key and if there is some Ctrl+Alt combination which uses the same key, the shortcut action will be triggered and the character you wanted to write won't appear (preventDefault()).