projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7a31cb
)
Roo/form/TextField.js
author
Alan Knowles
<alan@roojs.com>
Tue, 16 Jun 2015 06:05:03 +0000
(14:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 16 Jun 2015 06:05:03 +0000
(14:05 +0800)
Roo/form/TextField.js
patch
|
blob
|
history
diff --git
a/Roo/form/TextField.js
b/Roo/form/TextField.js
index
4af5627
..
059611e
100644
(file)
--- a/
Roo/form/TextField.js
+++ b/
Roo/form/TextField.js
@@
-312,12
+312,14
@@
Roo.extend(Roo.form.TextField, Roo.form.Field, {
return;
}
- if(isSelectAll){ // backspace and delete key
+ if(isSelectAll
&& event.getCharCode() > 31
){ // backspace and delete key
event.preventDefault();
// this is very hacky as keydown always get's upper case.
- //
+
var cc = String.fromCharCode(event.getCharCode());
+
+
this.setValue( event.shiftKey ? cc : cc.toLowerCase());
}