aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Clement2012-01-21 20:10:28 (EST)
committerMark Macdonald2012-01-25 16:14:48 (EST)
commitafe7924de70175ca42274e0167f7df7b3e2a41cb (patch)
tree16c466f2dfe028fdfd19942e6cf6c2c5f2d580ef
parente401b94b6acd8e3c866ab6232a0833cc48f5718a (diff)
downloadorg.eclipse.orion.client-afe7924de70175ca42274e0167f7df7b3e2a41cb.zip
org.eclipse.orion.client-afe7924de70175ca42274e0167f7df7b3e2a41cb.tar.gz
org.eclipse.orion.client-afe7924de70175ca42274e0167f7df7b3e2a41cb.tar.bz2
close dialog when ENTER used to select a link
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js b/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js
index 6a599bc..4f003da 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/widgets/OpenResourceDialog.js
@@ -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*/
@@ -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();
+ }
+ });
});
},
@@ -132,4 +138,4 @@ var OpenResourceDialog = dojo.declare("orion.widgets.OpenResourceDialog", [dijit
});
return OpenResourceDialog;
-}); \ No newline at end of file
+});