I have a custom Swedish Dvorak keyboard layout which relies heavily on the AltGr modifier on Swedish keyboards. However, when I hit e.g. AltGr+u (which should generate a forward slash), PyCharm interprets it as Alt+Ctrl+u, which is apparently bound to something special.
Since I'd rather not play whack-a-mole with PyCharm...is there any way to solve this in any way other than removing all taken Alt+Ctrl key bindings manually?
You might want to give AutoHotKey a try. The command sequence <^>!
listens for the AltGr modifier key, like so:
<^>!u::Send {/}
This line should listen for the AltGr + U key sequence and send the forward slash as expected. Because AutoHotKey listens to the keyboard and then intercepts keystrokes and sends characters separate from the underlying applications, it should be able to grab the keystroke you use and send the correct character to PyCharm, before PyCharm has a chance to interpret and alter the keystroke on its own.
This suggestion is based on similar situations I have dealt with. I have neither PyCharm nor a Swedish keyboard (Dvorak or otherwise) with which to test this.