1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 05:35:45 +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

@@ -708,7 +708,11 @@ function CommandLine() //{{{
case "<A-LeftMouse>": // for those not owning a 3-button mouse
case "<MiddleMouse>":
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;
// let firefox handle those to select table cells or show a context menu