mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 14:27:58 +01:00
* only switch tabs when clicking the URL in :ls, to make it easier to select text
* allow ctrl-(shift-)-clicks to select cells in the MOW
This commit is contained in:
@@ -694,7 +694,7 @@ function CommandLine() //{{{
|
||||
break;
|
||||
|
||||
case "<LeftMouse>":
|
||||
if (event.originalTarget.parentNode.className == "buffer-list")
|
||||
if (event.originalTarget.className == "hl-URL buffer-list")
|
||||
{
|
||||
vimperator.tabs.select(parseInt(event.originalTarget.parentNode.firstChild.textContent) - 1);
|
||||
close_window = true;
|
||||
@@ -705,13 +705,19 @@ function CommandLine() //{{{
|
||||
vimperator.open(event.originalTarget.textContent);
|
||||
break;
|
||||
}
|
||||
case "<A-LeftMouse>":
|
||||
case "<C-LeftMouse>":
|
||||
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);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
// let firefox handle those to select table cells or show a context menu
|
||||
case "<C-LeftMouse>":
|
||||
case "<RightMouse>":
|
||||
case "<C-S-LeftMouse>":
|
||||
break;
|
||||
|
||||
// XXX: what's that for? --mst
|
||||
case "<S-LeftMouse>":
|
||||
if (/^(end|more(-help)?)-prompt$/.test(event.target.id))
|
||||
; // fall through
|
||||
|
||||
Reference in New Issue
Block a user