Bug 826425 - double-click on finished downloads in Library view doesn't open them. r=mak.

This commit is contained in:
Asaf Romano 2013-01-05 16:49:58 +02:00
parent 99c50af9d0
commit 6830dc7b3a
2 changed files with 14 additions and 0 deletions

View File

@ -1185,6 +1185,19 @@ DownloadsPlacesView.prototype = {
element._shell.doCommand("downloadsCmd_pauseResume");
}
}
},
onDoubleClick: function DPV_onDoubleClick(aEvent) {
if (aEvent.button != 0)
return;
let selectedElements = this._richlistbox.selectedItems;
if (!selectedElements || selectedElements.length != 1)
return;
let element = selectedElements[0];
if (element._shell)
element._shell.doDefaultCommand();
}
};

View File

@ -43,6 +43,7 @@
seltype="multiple"
id="downloadsRichListBox" context="downloadsContextMenu"
onkeypress="return this._placesView.onKeyPress(event);"
ondblclick="return this._placesView.onDoubleClick(event);"
oncontextmenu="return this._placesView.onContextMenu(event);"
onfocus="goUpdateDownloadCommands();"
onselect="goUpdateDownloadCommands();"