onKeyUp : function(e){
- var k = e.getKey();
- var c = e.getCharCode();
-
- Roo.log(String.fromCharCode(c));
-
- if(
- [",", ".", "n"].indexOf(String.fromCharCode(c)) > -1 &&
- this.allowed.indexOf(String.fromCharCode(c)) === -1
- ){
+ if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){
e.stopEvent();
}
- // if(!Roo.isIE && (e.isSpecialKey() || k == e.BACKSPACE || k == e.DELETE)){
- // return;
- // }
- if(this.allowed.indexOf(String.fromCharCode(c)) === -1){
- e.stopEvent();
- }
+ Roo.log(this.getValue());
this.setValue(this.getValue());
}