Bug 392376 - "Double-clicking on the selected application within the file handling dialog should work as "OK" and launch the application" [p=florian r=Mano a=blocking-firefox3+]

git-svn-id: svn://10.0.0.236/trunk@239277 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2007-11-13 06:48:20 +00:00
parent 97ee72e1ba
commit d3cdf1e8e3
2 changed files with 12 additions and 0 deletions

View File

@ -233,6 +233,17 @@ var dialog = {
document.getElementById("remember-text").removeAttribute("visible");
},
/**
* Function called when the user double clicks on an item of the list
*/
onDblClick: function onDblClick()
{
if (this.selectedItem == this._itemChoose)
this.chooseApplication();
else
document.documentElement.acceptDialog();
},
/////////////////////////////////////////////////////////////////////////////
//// Getters / Setters

View File

@ -63,6 +63,7 @@
<vbox flex="1">
<description id="item-action-text"/>
<richlistbox id="items" flex="1"
ondblclick="dialog.onDblClick();"
onselect="dialog.updateOKButton();">
<richlistitem id="item-choose" orient="horizontal" selected="true">
<label value="&ChooseApp.description;" flex="1"/>