20

Using Pentadactyl, when I press the Alt key, it toggles the menu bar, and the --MENU-- mode. This is very embarrassing for me, as I use dwm window manager at the same time, where Alt is the most important meta key, so I hit it very often. How can I disable Pentadactyl's behaviour? I mean, I want it to do nothing when I press Alt. I already tried to remap Alt or Meta to nothing:

:map <A> <Nop>
:map <M> <Nop>

But it doesn't work.

deeenes
  • 681

4 Answers4

38

Summary: in about:config, toggle ui.key.menuAccessKeyFocuses to false.

Actually recently this is the normal behaviour of Firefox. Recently, because few versions earlier it was not like this. And using extensions like Pentadactyl or Vimperator, it is very apparent and annoying, while possibly with the default user interface it's convenient. So I searched for related Firefox settings, and I found, the ui.key.menuAccessKey and ui.key.menuAccessKeyFocuses. First I had the intuition that the first needed to change, which was set to 18, which means the Alt key. I set it to 0, without any effect. Then I changed the latter, from true to false, and the issue become resolved.

Luc
  • 3,411
deeenes
  • 681
1

Nice, the Alt will not toggle the Menu bar with my Iceweasel (Firefox) on Debian 7.

$ vim ~/.pentadactylrc
...

set guioptions=BNs

"  - Disable Alt key to toggle hidden Menu bar for Debian, Ubuntu.
set guioptions-=m
set! ui.key.menuAccessKeyFocuses=false

...
  1. the set! ui.key.menuAccessKeyFocuses=false need to after the set guioptions-=m.

  2. Here is my patch - [issue #6] Disable menu bar toggle by for Pentadactyl ยท chusiang/tuxENV@b4a7279.

1

Seeing as you're using dwm it might suit you better to just remap dwm's MODKEY, I prefer using the super, or "windows", key for this.

see this link for how to and a list of modkeys you can use.

It's preferable this way as a lot of applications like to map ALT.

nKn
  • 5,832
jgr
  • 11
0

I prefer that the menu bar be always visible whether or not Alt is pressed. This can be done as follows:

  1. Click the Firefox menu button (normally located at the far right beside the URL and Search boxes)
  2. Choose Customize at the bottom of the Firefox menu.
  3. At the bottom of the next screen that appears, click Show/Hide Toolbars dropdown menu, then place a check mark next to Menu Bar menu item.
  4. Finally, click Exit Customize at the lower right.

The menu bar should now always be visible and pressing Alt should have no effect.