X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/DateField.html diff --git a/docs/source/DateField.html b/docs/source/DateField.html index c3482a4c..6a65d085 100644 --- a/docs/source/DateField.html +++ b/docs/source/DateField.html @@ -1,17 +1,12 @@ - - - The source code - - - - -
/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-
/** + + + + The source code + + + + +
/** * @class Ext.form.DateField * @extends Ext.form.TriggerField * Provides a date input field with a {@link Ext.DatePicker} dropdown and automatic date validation. @@ -146,6 +141,18 @@ disabledDates: ["^03"] this.disabledDatesRE = null; this.initDisabledDays(); }, + + initEvents: function() { + Ext.form.DateField.superclass.initEvents.call(this); + this.keyNav = new Ext.KeyNav(this.el, { + "down": function(e) { + this.onTriggerClick(); + }, + scope: this, + forceKeyDown: true + }); + }, + // private initDisabledDays : function(){ @@ -311,7 +318,7 @@ dateField.setValue('2006-05-04'); // private onDestroy : function(){ - Ext.destroy(this.menu); + Ext.destroy(this.menu, this.keyNav); Ext.form.DateField.superclass.onDestroy.call(this); }, @@ -332,7 +339,8 @@ dateField.setValue('2006-05-04'); } if(this.menu == null){ this.menu = new Ext.menu.DateMenu({ - hideOnClick: false + hideOnClick: false, + focusOnSelect: false }); } this.onFocus(); @@ -393,6 +401,6 @@ dateField.setValue('2006-05-04'); * @method autoSize */ }); -Ext.reg('datefield', Ext.form.DateField);
- +Ext.reg('datefield', Ext.form.DateField);
+ \ No newline at end of file