If Netbeans’ keyboard shortcut for fixing import statements (or any other shortcut) stops working, it could be the KDE global shortcuts daemon interfering12. Per default, Ctrl+Shift+I
is bound to Kopete’s read message function, so if Kopete runs in background, Netbeans doesn’t catch the shortcut. Quick Fix: Close Kopete or simply remove the global shortcut.
To check, if the kglobalaccel
daemon uses Ctrl+Shift+I
, simply use
$ grep -i ctrl+shift+i ~/.kde/share/config/kglobalshortcutsrc ReadMessage=Ctrl+Shift+I,Ctrl+Shift+I,Read Message
You can either just remove the line from ~/.kde/share/config/kglobalshortcutsrc
, use KDE’s System Settings
tool (System Settings → Shortcuts and Gestures → Global Keyboard Shortcuts → KDE component: Kopete → Read Message)
or unset the shortcut in Kopete itself (Kopete → Settings → Configure Shortcuts → Read Message)
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=117058
[2] http://netbeans.org/bugzilla/show_bug.cgi?id=187776
Are you sure that the name of a daemon is «kdedglobalaccel»?
$ ps -A | grep kdedglobalaccel
$ kdedglobalaccel
kdedglobalaccel: command not found
Shortcuts works fine for me, despite the fact the daemon is missing.
@Hi-Angel
You’re right, the name of the daemon is actually ‘kglobalaccel’. I’ve fixed it in the post. Thanks a bunch!