General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Open new tab without changing focus?
Posted by: Slickone
Date: August 09, 2015 12:26AM

Is there a way to open a new tab from a link by middle clicking, but not change the focus to that tab? I think my KM used to do that, but now doesn't. I'm using version 75.

Options: ReplyQuote
Re: Open new tab without changing focus?
Posted by: JamesD
Date: August 09, 2015 03:05PM

Yes, using the m button is optional. The settings come from accel.cfg file in root/browser/settings folder.

# ----- Link Handling

# Middle-click links to new windows/tabs:
%ifplugin tabs
MButton = openLinkInNewTab
%else
MButton = openLinkInNewWindow
%endif

# Middle-click links to the background (instead of the above):
#%ifplugin tabs
#MButton = openLinkInBackgroundTab
#%else
#MButton = openLinkInBackground
#%endif

In your profile there is also a accel.cfg file which already had the code you want. The code is commented out. You would want to un-comment the code but not the description and save the file.

# Middle-click links to the background:
%ifplugin tabs
MButton = ID_OPEN_LINK_IN_BACKGROUNDTAB
%else
MButton = ID_OPEN_LINK_IN_BACKGROUND
%endif


Options: ReplyQuote
Re: Open new tab without changing focus?
Posted by: Slickone
Date: August 09, 2015 04:08PM

Thank you!
Is there any way to do it on the fly by chance? There are some places where I want it, others where I don't. A keyboard shortcut would be great.



Edited 1 time(s). Last edit at 08/09/2015 04:10PM by Slickone.

Options: ReplyQuote
Re: Open new tab without changing focus?
Posted by: siria
Date: August 09, 2015 04:39PM

Another possibility:
Tools > Mouse accelerators > Firefox

That changes also a few other mouse-related shortcuts, but guess most people don't use those anyway or even prefer the FF ones, if they are already used to it:
FAQ:
http://kmeleonbrowser.org/wiki/FAQ#mouseaccels

Options: ReplyQuote
Re: Open new tab without changing focus?
Posted by: siria
Date: August 09, 2015 04:56PM

Quote
Slickone
A keyboard shortcut would be great.

Choose your own shortcut, then add it to accels.cfg in profile folder:
xxxx = rebarmenu(Mouse &Accelerators)

A little KM goodie, Rebarmenu can open any menu by shortcut or macro smiling smiley
Just important to add a &-sign before underlined characters.

Options: ReplyQuote
Re: Open new tab without changing focus?
Posted by: Slickone
Date: August 09, 2015 05:57PM

Quote
siria
Another possibility:
Tools > Mouse accelerators > Firefox

That changes also a few other mouse-related shortcuts, but guess most people don't use those anyway or even prefer the FF ones, if they are already used to it:
FAQ:
http://kmeleonbrowser.org/wiki/FAQ#mouseaccels
That's perfect. Thanks. I only looked in the F2 Preferences.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.