Search code examples
intellij-ideakeyboardkeyboard-shortcuts

IntelliJ shortcut and keyboard layout


I recently acquired an HP Spectre 13 on which I installed GNU/Linux (Arch Linux). I then installed IntelliJ. Everything seemed fine until I tried the shortcut.

I'm on an AZERTY keyboard. I configured the system layout so that I can enjoy the right layout, i.e when I type the letter "a", I've got an "a", and so on. However, with IntelliJ, when typing text, the recognized keyboard layout is "azerty", but using shortcuts, IntelliJ recognizes a "qwerty" layout.

Example: To select all the text, we do ^A. But instead, I get a ^Q, though the letter "a" is recognized as an "a" when I code.

I'm clueless on this one, since for instance ^A works fine in my web browser. I doubt it may come from the hardware, but who knows.

PS: Whether it's IntelliJ 13 or 14, the problem is the same.


Solution

  • I finally found a solution by forcing the keyboard layout with the "setxkb" utility.

    setxkb fr
    

    It seems that doing it through my Desktop Environment (Cinammon) only solves it partially. It was also buggy.

    So I decided to move to something more basic such as awesome and bspwm, where things doesn't come magically since you have to configure everything yourself.