Bug 254696 Download Manager should open file/display properties when you hit enter
patch by cst@andrew.cmu.edu r=neil sr=jag git-svn-id: svn://10.0.0.236/trunk@160960 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e825a3bacc
commit
0ae5fac927
@ -139,10 +139,7 @@ function onSelect(aEvent) {
|
||||
window.updateCommands("tree-select");
|
||||
}
|
||||
|
||||
function onDoubleClick(aEvent) {
|
||||
if (aEvent.button != 0)
|
||||
return;
|
||||
|
||||
function onTrigger() {
|
||||
if (downloadViewController.isCommandEnabled('cmd_properties'))
|
||||
goDoCommand('cmd_properties');
|
||||
else if (downloadViewController.isCommandEnabled('cmd_openfile'))
|
||||
|
||||
@ -171,8 +171,10 @@
|
||||
|
||||
<tree id="downloadView" flex="1" class="plain" context="downloadPaneContext"
|
||||
datasources="rdf:null" ref="NC:DownloadsRoot" flags="dont-test-empty"
|
||||
ondblclick="onDoubleClick(event);" enableColumnDrag="true"
|
||||
onselect="onSelect(event);">
|
||||
enableColumnDrag="true" onselect="onSelect(event);"
|
||||
ondblclick="if (event.button == 0) onTrigger();"
|
||||
onkeypress="if ((event.keyCode == KeyEvent.DOM_VK_RETURN) ||
|
||||
(event.keyCode == KeyEvent.DOM_VK_ENTER)) onTrigger();">
|
||||
<treecols onclick="doSort(event.target)">
|
||||
<treecol id="Name" primary="true"
|
||||
label="&view.header.name.label;"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user