зеркало из https://github.com/mozilla/gecko-dev.git
Bug 826425 - double-click on finished downloads in Library view doesn't open them. r=mak.
This commit is contained in:
Родитель
99c50af9d0
Коммит
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();"
|
||||
|
|
Загрузка…
Ссылка в новой задаче