Gnome 3总是显示ALT + x键盘快捷键

时间:2012-04-11 10:11:50

标签: gnome shortcuts underline

我发现"gtk-auto-mnemonic = 0"应该重新打开带下划线的键盘快捷键,但每个主题文件末尾的"gtk-auto-mnemonic = 0""gtk-auto-mnemonic = 1"都没有任何区别。

此建议仅适用于Gnome 2吗?

如何让快捷方式始终可见,而不仅仅是在按下ALT时?

我用

做到了
locate gtkrc | grep themes | xargs -I @ echo "echo \"gtk-auto-mnemonics = 0\" >> @" | sudo sh

并验证(两者都是零和一,我试过两者):

~$ locate gtkrc | grep themes | xargs grep auto
/usr/share/gimp/2.0/themes/Default/gtkrc:gtk-auto-mnemonics = 1
/usr/share/gimp/2.0/themes/Small/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Adwaita/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Adwaita/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Crux/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Default/gtk-2.0-key/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Emacs/gtk-2.0-key/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/HighContrast/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/HighContrastInverse/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Industrial/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/LowContrast/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Mist/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Raleigh/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/Redmond/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/ThinIce/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1
/usr/share/themes/bubble/gtk-2.0/gtkrc:gtk-auto-mnemonics = 1

1 个答案:

答案 0 :(得分:5)

尝试:

$ dconf write /org/gnome/desktop/interface/automatic-mnemonics false

根据其架构:仅在按下Alt键时显示助记符。当用户按下Alt键时,是否应自动显示和隐藏助记符。

或者,您可以使用 dconf-editor 更改值。

您需要重新启动应用程序才能使更改生效。