I think something happened in latest version of intellij, I'm constantly loosing focus when using dialogs like Ctrl+shift+(A|N|etc.) then I have to click in the editor to get the cursor again.
Also have that issue with IntelliJ on Linux Mint 17.3. There is supposed to be a IntelliJ patch arriving soon, otherwise it will drive developers absolutely crazy.