mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 03:37:58 +01:00
use the value of 'activate' when opening new tabs from the MOW
This commit is contained in:
@@ -248,7 +248,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
list += "<tr><td align=\"right\"> " + number + "</td><td>" + indicator +
|
list += "<tr><td align=\"right\"> " + number + "</td><td>" + indicator +
|
||||||
"</td><td style=\"width: 250px; max-width: 500px; overflow: hidden;\">" + title +
|
"</td><td style=\"width: 250px; max-width: 500px; overflow: hidden;\">" + title +
|
||||||
"</td><td class=\"hl-URL buffer-list\">" + url + "</td></tr>";
|
"</td><td><a href=\"#\" class=\"hl-URL buffer-list\">" + url + "</a></td></tr>";
|
||||||
}
|
}
|
||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|
||||||
|
|||||||
@@ -708,7 +708,11 @@ function CommandLine() //{{{
|
|||||||
case "<A-LeftMouse>": // for those not owning a 3-button mouse
|
case "<A-LeftMouse>": // for those not owning a 3-button mouse
|
||||||
case "<MiddleMouse>":
|
case "<MiddleMouse>":
|
||||||
if (event.originalTarget.localName.toLowerCase() == "a")
|
if (event.originalTarget.localName.toLowerCase() == "a")
|
||||||
vimperator.open(event.originalTarget.textContent, vimperator.NEW_BACKGROUND_TAB);
|
{
|
||||||
|
var where = /\btabopen\b/.test(vimperator.options["activate"]) ?
|
||||||
|
vimperator.NEW_TAB : vimperator.NEW_BACKGROUND_TAB;
|
||||||
|
vimperator.open(event.originalTarget.textContent, where);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// let firefox handle those to select table cells or show a context menu
|
// let firefox handle those to select table cells or show a context menu
|
||||||
|
|||||||
@@ -179,8 +179,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
padding: 0px 2px;
|
padding: 0px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vimperator-multiline-output-content a,
|
#vimperator-multiline-output-content a {
|
||||||
#vimperator-multiline-output-content .buffer-list {
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user