this.keyNav = new Roo.KeyNav(this.el, {
"tab" : function(e){
- Roo.log(e);
+
e.preventDefault();
Roo.log('TAB');
var start = this.el.dom.selectionStart;
var end = this.el.dom.selectionEnd;
- this.setValue(value.substring(0, start) + "\t" + value.substring(end));
+ if(!e.shiftKey){
+ this.setValue(value.substring(0, start) + "\t" + value.substring(end));
+
+ this.el.dom.setSelectionRange(end + 1, end + 1);
+ return;
+ }
+
+
- this.el.dom.setSelectionRange(end + 1, end + 1);
},
"home" : function(e){