projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2bb3ee
)
Roo/form/TextField.js
author
Alan Knowles
<alan@roojs.com>
Thu, 25 Jul 2013 07:10:55 +0000
(15:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 25 Jul 2013 07:10:55 +0000
(15:10 +0800)
Roo/form/TextField.js
patch
|
blob
|
history
diff --git
a/Roo/form/TextField.js
b/Roo/form/TextField.js
index
c8bfa9a
..
4e61240
100644
(file)
--- a/
Roo/form/TextField.js
+++ b/
Roo/form/TextField.js
@@
-320,6
+320,7
@@
Roo.extend(Roo.form.TextField, Roo.form.Field, {
// this is a workaround for a password hang bug on chrome/ webkit.
var isSelectAll = false;
+
if(this.el.dom.selectionEnd > 0){
isSelectAll = (this.el.dom.selectionEnd - this.el.dom.selectionStart - this.getValue().length == 0) ? true : false;
}
@@
-327,7
+328,8
@@
Roo.extend(Roo.form.TextField, Roo.form.Field, {
event.preventDefault();
this.setValue('');
return;
- };
+ }
+
if(isSelectAll){ // backspace and delete key
event.preventDefault();