how to disable Alt-to-menu shortcut?

Asked by Sergei Ivanov

When I press and release the Alt key in a KDE app, it usually switches to the menu bar.
I would like to disable this effect (so that a single Alt key is a no-op just like Ctrl and Shift).

As I see from Qt sources, this effect is optional and can be enabled or disabled
by the style plugin (more precisely, it is controlled by a "style hint" called
SH_MenuBar_AltKeyNavigation).

Some of the Qt styles (Motif, CDE) disable this option but I dislike them for other reasons.
The KDE styles (plastik etc) have this option enabled. Is there any way to change this?
If not, is it configurable in KDE4?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu kdebase Edit question
Assignee:
No assignee Edit question
Solved by:
Sergei Ivanov
Solved:
Last query:
Last reply:
Revision history for this message
Sergei Ivanov (svivanov) said :
#1

I found an answer myself. The option can be turned off by adding the following line:
MenuAltKeyNavigation=false
to the file $HOME/.qt/kstylerc.
It seems that there is no GUI way.