Sublime Forum

AltGr being recognized as Alt

#1

Hey there,

I just upgraded to Sublime Text 3 and noticed the AltGr key on Windows doesn’t work as expected.
As I am using German keyboard layout, some characters like curly and square brackets are enterred with AltGr modifier.
Usually the AltGr key gets translated to Ctrl+Alt, but when watching the input log with sublime.log_input(True) it just seems to be detected as Alt.
For example, AltGr+7 (left curly bracket) gets detected as Alt+7 instead of Ctrl+Alt+7 and nothing happens.

If I press Ctrl+Alt+7 manually, the bracket is inserted as expected. But as I’m used to the AltGr key, this gets really annoying while coding.
As a temporary workaround I created some custom key bindings to insert the corresponding character, but I’m not very happy with that.

I would be glad if you fixed this issue in an upcoming release. It worked perfectly in ST2, so perhaps you can simply add a setting to revert to the old behavior.

Best wishes from Germany,
WhyEee

0 Likes