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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user