From: Edward Date: Tue, 23 Apr 2013 04:14:43 +0000 (+0800) Subject: widgets/SecurePass.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=ba876995d54fe4fe065796d18f15fdaf58dfd1d6 widgets/SecurePass.js --- diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index c3e97b5e..a78eac14 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -73,8 +73,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { initEvents : function(){ if(this.inputType == 'password'){ this.el.on('keydown',function(event){ - Roo.log(this); - if(event.getKey() == 8){ + if(event.getKey() == 8 && this.getValue().length == 1){ event.preventDefault(); this.setValue(''); };