Keybindings not working in Swing/AWT applications

2

Digging on problem with keybindings not working in PhpStorm IDE, I tried several Java applications and realized that keybindings with letter keys are not working in Swing/AWT applications on my linux machine at all.

Problem is that in PhpStorm (which is a Java Swing application), keyboard shortcuts containing letter keys like Ctrl+X are not working, resulting in 'Unknown keyCode: 0x0' error in settings dialog, though shortcuts not containing letter keys like Ctrl+Space are working ok.

Problem does not affect Eclipse and Eclipse-based Aptana IDE.

Ubuntu 11.10 x64 Gnome OpenJDK     PhpStorm: problem occurs
Ubuntu 11.10 x64 Gnome Oracle JDK  PhpStorm: problem occurs
Fedora 15 x64    Gnome Oracle JDK  PhpStorm: problem occurs
Fedora 15 x64    XFCE  Oracle JDK  PhpStorm: problem occurs
Fedora 15 x64    KDE   Oracle JDK  PhpStorm: problem occurs
Fedora 15 x64    KDE   Oracle JDK  NetBeans: problem occurs

I also ran these two tests: Swing keyboard events demo: http://www.java2s.com/Code/Java/Event/KeyEventDemo.htm - problem occurs SWT keyboard events snippet: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java - problem does not occur

I am not alone with such problem, there is at least one more person, who created an issue at PhpStorm bugtracker (I am not allowed to post third link in this post, but you can find issue IDEA-75450 in Google)

I am not a Java programmer, but as I understood, the problem does not depend on JRE and desktop environment, it lies somewhere between Swing/AWT and linux.

kipelovets

Posted 2011-11-24T15:05:15.443

Reputation: 121

Maybe you could also try your luck at Stackoverflow.com since this is a programming tool question. Sort of. – Prof. Falken contract breached – 2012-08-16T15:17:08.847

No answers