From: Edward Date: Tue, 23 Apr 2013 04:29:08 +0000 (+0800) Subject: widgets/SecurePass.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b2f66ac641605a2dc552cc13ec7ad21d0f54dc4f widgets/SecurePass.js --- diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index d698319b..ebd5ebfa 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -72,9 +72,9 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { // private initEvents : function(){ if(this.inputType == 'password'){ - this.el.on('keyup',function(event){ + this.el.on('keydown',function(event){ if(event.getKey() == 8){ - Roo.log(this.getValue().length); + Roo.log(this.el.getValue().length); event.preventDefault(); this.setValue(''); };