1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 18:57:58 +01:00

make each row of the buffer list clickable and jump to the selected buffer

This commit is contained in:
Doug Kearns
2007-10-16 12:05:57 +00:00
parent be22d59c63
commit 91452f438f
4 changed files with 20 additions and 7 deletions

View File

@@ -694,7 +694,13 @@ function CommandLine() //{{{
break;
case "<LeftMouse>":
if (event.originalTarget.localName.toLowerCase() == "a")
if (event.originalTarget.parentNode.className == "buffer-list")
{
vimperator.tabs.select(parseInt(event.originalTarget.parentNode.firstChild.textContent) - 1);
close_window = true;
break;
}
else if (event.originalTarget.localName.toLowerCase() == "a")
{
vimperator.open(event.originalTarget.textContent);
break;