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.
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()).
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.