Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
close dialog when ENTER used to select a link
  • Loading branch information
aclement committed Jan 22, 2012
1 parent 822db97 commit 02d6700
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -8,6 +8,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
* Andy Clement (vmware) - bug 344614
*******************************************************************************/
/*jslint browser:true*/
/*global define orion window dojo dijit*/
Expand Down Expand Up @@ -113,6 +114,11 @@ var OpenResourceDialog = dojo.declare("orion.widgets.OpenResourceDialog", [dijit
widget.hide();
}
});
dojo.connect(link,"onkeyup",widget,function(evt) {
if (evt.keyCode === dojo.keys.ENTER) {
widget.hide();
}
});
});
},

Expand All @@ -132,4 +138,4 @@ var OpenResourceDialog = dojo.declare("orion.widgets.OpenResourceDialog", [dijit

});
return OpenResourceDialog;
});
});

0 comments on commit 02d6700

Please sign in to comment.