Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On a default Firefox profile, Middle Click does the same thing as Ctrl+Click - for most of the sites, anyway. There are some sites where this doesn't work; either a new tab is not created at all (instead the click occurs in the current tab), or a tab is created but a click also occurs in the current tab.

Is it possible to configure Middle Click to be absolutely identical to Ctrl+Click, so that they never do different things?

share|improve this question
3  
More than the solution to the problem, would someone have an actual explanation ? I'm curious why even such thing happens. –  Gnoupi Aug 26 '09 at 20:52
add comment

3 Answers

up vote 2 down vote accepted

Phoshi's answer using an AutoHotkey script is a nice workaround. I recommend replacing his AutoHotkey script with this modification:

SetTitleMatchMode, 2
#IfWinActive Mozilla Firefox
MButton::
Send ^{LButton}
#IfWinActive

What improvement does this make? Phoshi's script (i.e., using MButton::IfWinActive, Mozilla Firefox and so forth) will make it so the middle mouse button (outside of Firefox and other windows with "Mozilla Firefox" in the title) can only send a middle mouse click—middle-drag or middle-button-hold gestures will be impossible while the script is active. (Also, all middle-mouse-button gestures are disabled in "Mozilla Firefox"-titled windows.)

Also, SetTitleMatchMode, 2 allows the script to match Firefox even if "Mozilla Firefox" is later in the window title (otherwise it will only match if "Mozilla Firefox" is at the beginning of the window title).

share|improve this answer
    
The #IfWinActive directive "switches off" the hotkeys and hotstrings listed after it unless the described window is active. Using #IfWinActive without any parameters on the rest of the line returns behavior to normal for the hotkeys and hotstrings listed afterward. –  Firefeather Jan 27 '11 at 20:12
add comment
MButton::
IfWinActive, Mozilla Firefox
send ^{LButton}
else
send {MButton}
return

in autohotkey would do it. Note that this turns middle click into control and left -everywhere- in firefox, not just for links.

edit: take out the additional linebreaks, I can't get them one line apart for some reason :\

share|improve this answer
1  
@Phoshi - use the "Code Sample" option (the 1's & 0's icon) to display as code. I don't have enough rep here to do it for you so you can see. –  ChrisF Aug 26 '09 at 20:29
    
Hmm good idea, somehow I never considered a solution outside of Firefox. I'll give it a go. –  romkyns Aug 26 '09 at 20:31
    
Aaaah, thanks Chris :) Good luck, rom :) (Authotkey is a great tool, it can do just about anything <3) –  Phoshi Aug 26 '09 at 20:39
1  
What can't Autohotkey fix? –  pavsaund Aug 26 '09 at 20:43
    
Obviously nothing on SuperUser, I start believing. –  Gnoupi Aug 26 '09 at 20:51
show 1 more comment

If you use TabMixPlus, you can configure all mouse actions, including middle click. This works on every platform.

share|improve this answer
add comment

Your Answer

 
discard

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.