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

index 158d628..705a5a2 100644 (file)
@@ -287,7 +287,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
             
             "home" : function(e){
                 e.preventDefault();
-                Roo.log("HOME");
+                
                 var curr = this.el.dom.selectionStart;
                 var lines = this.getValue().split("\n");
                 
@@ -295,7 +295,10 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
                     return;
                 }
                 
-                Roo.log(e);
+                if(e.ctrlKey){
+                    this.el.dom.setSelectionRange(0, 0);
+                    return;
+                }
                 
                 var pos = 0;