mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug 826425 - double-click on finished downloads in Library view doesn't open them. r=mak.
This commit is contained in:
parent
99c50af9d0
commit
6830dc7b3a
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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();"
|
||||
|
Loading…
Reference in New Issue
Block a user