[Commits] r2896 - sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets
commits at geoext.org
commits at geoext.org
Fri Dec 14 13:45:27 CET 2012
Author: sbrunner
Date: 2012-12-14 13:45:27 +0100 (Fri, 14 Dec 2012)
New Revision: 2896
Modified:
sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
Log:
Call capabilities on press enter
Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js 2012-12-14 12:45:26 UTC (rev 2895)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js 2012-12-14 12:45:27 UTC (rev 2896)
@@ -386,10 +386,19 @@
forceSelection: false,
triggerAction: 'all',
allowBlank: false,
- validator:this.urlValidator,
+ validator: this.urlValidator,
invalidText: this.inputURLInvalidText,
emptyText: this.inputURLText,
- selectOnFocus:true
+ selectOnFocus: true,
+ enableKeyEvents: true,
+ listeners: {
+ keypress: function(field, e) {
+ if (e.keyCode == e.ENTER) {
+ this.triggerGetCapabilities();
+ }
+ },
+ scope: this
+ }
});
var northPanel = new Ext.form.FormPanel({
More information about the Commits
mailing list