1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 05:37:58 +01:00

use the value of 'activate' when opening new tabs from the MOW

This commit is contained in:
Doug Kearns
2007-10-16 14:05:52 +00:00
parent 329df9b7cd
commit 83df17f660
3 changed files with 7 additions and 4 deletions

View File

@@ -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>";

View File

@@ -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

View File

@@ -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;
} }