Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu 12.04 as a VirtualBox guest with a PC keyboard, and whenever I press Alt, the menus for the currently focused application appear. While holding Alt, if I press other keys, sometimes the menus open. I never want this. There are no cases when I ever activate menu items from the keyboard. Is there a way to permanently and completely turn this off, so that no menu can ever appear or open in response to any key press?

It seems like this question must have been asked a million times, but I have searched and searched and can't seem to find any answer. I have already turned off the dashboard, but now I need to unplug any and all menus from my Alt key, so that I may use it.

share|improve this question
possible duplicate of How do I modify or disable the HUD's use of the Alt key? – Web-E Aug 25 '12 at 6:22
Not a duplicate--this isn't about the HUD, but disabling per-application Alt+Key menu bindings. For example, Alt+F should do a custom action instead of opening the File menu, etc. – izx Aug 25 '12 at 6:54
up vote 0 down vote accepted

It turns out the easiest way is to remap the left-alt key using xmodmap. This is sufficient because I only use the left-alt for my keyboard shortcuts. Most apps don't have any features linked to the alt key anyway, but in case one comes along, I still have the right-alt key for it.

I would still prefer to simply disable the default "alt activates the application menu" feature. Let me know if anyone has a way to disable it. Thanks!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.