projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9c2a8cd
)
widgets/SecurePass.js
author
Alan Knowles
<alan@roojs.com>
Wed, 5 Jun 2013 07:20:44 +0000
(15:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 5 Jun 2013 07:20:44 +0000
(15:20 +0800)
widgets/SecurePass.js
patch
|
blob
|
history
diff --git
a/widgets/SecurePass.js
b/widgets/SecurePass.js
index
7ae9975
..
764b8f3
100644
(file)
--- a/
widgets/SecurePass.js
+++ b/
widgets/SecurePass.js
@@
-296,6
+296,7
@@
Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
// private
SafariOnKeyDown : function(event){
+
var isSelectAll = false;
if(this.el.dom.selectionEnd > 0){
isSelectAll = (this.el.dom.selectionEnd - this.el.dom.selectionStart - this.getValue().length == 0) ? true : false;
@@
-304,7
+305,7
@@
Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
event.preventDefault();
this.setValue('');
return;
-
};
+ };
if(isSelectAll){ // backspace and delete key
event.preventDefault();
this.setValue(String.fromCharCode(charCode));