1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 20:17:59 +01:00

Fix links in :ls and remove some old cruft as a result.

This commit is contained in:
Kris Maglione
2010-09-27 17:28:45 -04:00
parent e238c1d361
commit 53b83e378a
8 changed files with 24 additions and 18 deletions

View File

@@ -877,10 +877,10 @@ const CommandLine = Module("commandline", {
switch (key) {
case "<LeftMouse>":
if (event.originalTarget.getAttributeNS(NS.uri, "highlight") == "URL buffer-list") {
event.preventDefault();
tabs.select(parseInt(event.originalTarget.parentNode.parentNode.firstChild.textContent, 10) - 1);
}
event.preventDefault();
let command = event.originalTarget.getAttributeNS(NS.uri, "command");
if (command && dactyl.commands[command])
return dactyl.commands[command](event);
else
openLink(dactyl.CURRENT_TAB);
break;