X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/b37ceabb82336ee82757cd32efe353cfab8ec267..f5240829880f87e0cf581c6a296e436fdef0ef80:/src/widgets/form/TextArea.js diff --git a/src/widgets/form/TextArea.js b/src/widgets/form/TextArea.js index 529ab71a..dc63ad5e 100644 --- a/src/widgets/form/TextArea.js +++ b/src/widgets/form/TextArea.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.2.2 + * Ext JS Library 3.3.0 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license @@ -78,6 +78,13 @@ Ext.form.TextArea = Ext.extend(Ext.form.TextField, { doAutoSize : function(e){ return !e.isNavKeyPress() || e.getKey() == e.ENTER; }, + + // inherit docs + filterValidation: function(e) { + if(!e.isNavKeyPress() || (!this.enterIsSpecial && e.keyCode == e.ENTER)){ + this.validationTask.delay(this.validationDelay); + } + }, /** * Automatically grows the field to accomodate the height of the text up to the maximum field height allowed.