Wednesday, May 30, 2007

Keyboard Focus problem with IDEA/Swing and KDE/X

I have been having trouble with loosing keyboard focus in IDEA when doing stuff like Ctrl-E or Alt-Enter for quick-fixes. If you are having such problems, try doing this:

export AWT_TOOLKIT=XToolkit
./idea.sh

It helped on a SuSE box running IDEA 6 and 7 on KDE.

I think the problem is more with Swing combined with X/KDE than with IDEA. When setting AWT_TOOLKIT to XToolkit, you are choosing a new implementation of AWT against the native UI components of the platform.

No comments: