I can assign Alt+F1 and Alt+F2 to any function I like in the keyboard configuration window, but its not beeing used. Alt+F1 is always 'dash home' and Alt+F2 is always 'run'
I sat with the same issue after upgrading to 12.04 and installing Gnome Shell. I tried to disable ALT+F1 from wherever I could, to no avail.
As I was about to give up I found this gist: https://gist.github.com/2402448
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "" # disable Alt+F1
Credits to https://gist.github.com/musinsky
With ubuntu unity plugin installed, the musinsky gist snippet in terminal wasn't enough.
Disabling using compizconfig-settings-manager:
sudo apt-get install compizconfig-settings-manager sudo apt-get install compiz-plugins-extra ccsm ubuntu unity plugin
- Key to show the HUD - disable
- Key to execute a command - disable
- Key to give keyboard focus to Launcher - disable
Although johanmynhardt gave us the right answer for the Alt-F1 he did not tell us what it is for Alt-F2. With the for loop as shown by Jesse Glick, I figured out the Alt-F2 command. Like this to remove BOTH keys:
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "" # disable Alt+F1 gsettings set org.gnome.desktop.wm.keybindings panel-run-dialog "" # disable Alt-F2
On Ubuntu 16.04 you can do it using the following command:
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ keyboard-focus ''