Ubuntu unity binds the F10 key to the global menu by default. This is very annoying when using Midnight Commander in a terminal window, where F10 should close Midnight Commander.
With Ubuntu 12.04 it needs three (!) steps to deactivate all F10 bindings:
Step 1 (this was the only step required in Ubuntu 11.10) - deactivate the Compiz binding
sudo apt-get install compizconfig-settings-manager
ccsm
This will install and start the Compiz configuration program. Under “Ubuntu Unity Plugin” deactivate “Key to open the first panel menu”.
Step 2 - deactivate the Terminal binding
Open a terminal. In the main menu, open Edit -> Keyboard Shortcuts and uncheck “Enable the menu shortcut key (F10 by default)”
Step 3 - whatever this deactivates
mkdir -p ~/.config/gtk-3.0
cat<<EOF > ~/.config/gtk-3.0/gtk.css
@binding-set NoKeyboardNavigation {
unbind "<shift>F10"
}
* {
gtk-key-bindings: NoKeyboardNavigation
}
EOF
From now on, new terminals will allow you using F10. Thanks for the tips found here: http://askubuntu.com/questions/37313/how-do-i-deactivate-f1-and-f10-keybindings