From a4c3278404ff5754a509847538eb2361ab5f298b Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 23 Apr 2013 12:59:44 +0800 Subject: [PATCH] widgets/SecurePass.js --- widgets/SecurePass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index bbc5964f..8a272473 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'){ + if(this.el.is('input[type=password]')){ this.el.on('keydown',function(event){ - Roo.log(this.el.is('input[type=password]')); + Roo.log(Roo.isSafari); if((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length ==1){ // backspace and delete key event.preventDefault(); this.setValue(''); -- 2.39.2