Roo/form/HtmlEditor.js
authorEdward <edward@roojs.com>
Mon, 8 Jun 2015 09:10:47 +0000 (17:10 +0800)
committerEdward <edward@roojs.com>
Mon, 8 Jun 2015 09:10:47 +0000 (17:10 +0800)
Roo/form/HtmlEditor.js

index d9ef451..205f100 100644 (file)
@@ -359,7 +359,13 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                     break;
                 }
                 
-                this.el.dom.setSelectionRange(pos, pos);
+                if(!e.shiftKey){
+                    this.el.dom.setSelectionRange(pos, pos);
+                    return;
+                }
+                
+                this.el.dom.selectionStart = pos;
+                this.el.dom.selectionEnd = curr;
             },
 
             scope : this,