Quote
Tomas Herrmann
It works for new written links (if configured so) - but not for ctrl-t, a mouse gesture, or right-click "open in new tab"
Check and see if your "menus.cfg" file has the lines in red below.
I am using KM 76 RC2 and I can right click and choose Open in Background. If you do not have this code, just copy these lines into your menus.cfg file and save it.
LinkOpen{
%ifplugin tabs
Open In Ne&w Tab=openLinkInNewTab
Open In Bac&kground Tab=openLinkInBackgroundTab
-
%endif
Open In &New Window=openLinkInNewWindow
Open In Backgro&und Window=openLinkInBackground
}
OOPS: this not right below. I think I am in wrong place. More later.
Edit 2:
No available command:
Tab Actions
tabNew id = ID_NEW_TAB
tabClose id = ID_CLOSE_TAB
tabCloseAll id = ID_CLOSE_ALLTAB
tabCloseAllOther id = ID_CLOSE_ALLOTHERTAB
tabNext id = ID_TAB_NEXT
tabPrev id = ID_TAB_PREV
tabLast id = ID_TAB_LAST
I have not tried this yet, but I think that if you add the line in red below to your accel.cfg file it will give you the option to open in the background tab from CTRL ALT T.
%ifplugin tabs
CTRL T = tabNew
CTRL ALT T = openLinkInBackgroundTab
%endif
Note: make these changes when KM is not running.
Edit 3
Do it this way for a CTRL ALT T to open a tab, apparently, in the background. Copy the following code and save it as a macro file.
MkNeBgTab.kmm ( Give it this name and save in macros folder)
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
# File name: MkNeBgTab.kmm
# ---------- Create an accel key for a new tab in background -------------------------------
#
# Dependencies : main.kmm KM version 75 or later and tabs
# Reference : http://kmeleonbrowser.org/forum/read.php?4,140134
# Version : 1.0 2016-11-04
# Author : JamesD
# ---------------------------------------------------------------------------------------
## PUBLIC
MkNeBgTab_OpenNewTabInBkGn {
id(ID_NEW_TA;
id(ID_TAB_PREV);
}
## PRIVATE
_MkNeBgTab_SetAccels {
setaccel("CTRL ALT T", "macros(MkNeBgTab_OpenNewTabInBkGn)");
}
# ------------------------------------------------------------
$OnInit = $OnInit . "_MkNeBgTab_SetAccels;";
$macroModules = $macroModules . "MkNeBgTab;";
Edited 3 time(s). Last edit at 11/04/2016 05:24PM by JamesD.