I am running Fedora 17 gnome (shell) 3 and gnome terminal 3.4.1.1.
I am a user of both gnome-terminal and midnight commander. As default gnome-terminal has always used F10 (which I need while using mc), to opening the top menu. So was this time. I was able to disable that behaviour in the settings, as always.
Which is new to me, is that after I disabled the setting, it started opening the “right-click menu” at the mouse cursor when I press F10. The key goes to mc too, but it is annoying to have to always close the menu.
I assume it is caused by gnome terminal, as it does not happen in other apps. Is this a “feature” or bug, has anyone else encountered the same problem and how to fix it?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
It’s a feature. Go to Edit->Keyboard Shortcuts
And uncheck “Enable the menu shortcut key”
to turn it off.
Method 2
Here is a simple solution for the problem described:
For GTK 3 apps like gnome-terminal and nautilus just create (or edit if you have one) the file ~/.config/gtk-3.0/gtk.css with following content:
$ cat ~/.config/gtk-3.0/gtk.css
@binding-set NoKeyboardNavigation {
unbind "F10"
}
* {
gtk-key-bindings: NoKeyboardNavigation
}
Method 3
For Fedora 17 you can find the bug report here
https://bugzilla.redhat.com/show_bug.cgi?id=800856
The workaround there is, create ~/.config/gtk-3.0/gtk.css file with following content:
@binding-set NoKeyboardNavigation {
unbind "<shift>F10"
}
* {
gtk-key-bindings: NoKeyboardNavigation
}
Method 4
I fixed this on Ubuntu by making a new ~/.config/gtk-3.0/gtk.css and putting this in it:
@binding-set NoKeyboardNavigation {
unbind "<shift>F10"
}
* {
gtk-key-bindings: NoKeyboardNavigation
}
Method 5
in centos, rhel, oracle linux
Go to Edit->Keyboard Shortcuts
And uncheck “Enable the menu shortcut key”
to turn it off.
Method 6
The best way I found in gnome 4 on a Fedora 35 to disable F10 shortcut :
gsettings set org.gnome.Terminal.Legacy.Settings menu-accelerator-enabled false
Hope it helps 🙂
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0