Commit 60272950 authored by campaign's avatar campaign

修复光标

parent 74a372ea
...@@ -93,7 +93,7 @@ KityMinder.registerModule( "TextEditModule", function () { ...@@ -93,7 +93,7 @@ KityMinder.registerModule( "TextEditModule", function () {
.setRange(range); .setRange(range);
sel.setData('relatedNode',node); sel.setData('relatedNode',node);
mouseDownStatus = true; mouseDownStatus = true;
lastEvtPosition = e.getPosition(); lastEvtPosition = e.getPosition(this.getRenderContainer());
if(selectionByClick){ if(selectionByClick){
sel.setShow(); sel.setShow();
selectionByClick = false; selectionByClick = false;
...@@ -214,7 +214,7 @@ KityMinder.registerModule( "TextEditModule", function () { ...@@ -214,7 +214,7 @@ KityMinder.registerModule( "TextEditModule", function () {
receiver.updateSelectionByMousePosition(offset,dir) receiver.updateSelectionByMousePosition(offset,dir)
.updateSelectionShow(dir); .updateSelectionShow(dir);
lastEvtPosition = e.getPosition(); lastEvtPosition = e.getPosition(this.getRenderContainer());
} }
}, },
...@@ -333,6 +333,10 @@ KityMinder.registerModule( "TextEditModule", function () { ...@@ -333,6 +333,10 @@ KityMinder.registerModule( "TextEditModule", function () {
blur:function(){ blur:function(){
receiver.clear(); receiver.clear();
}, },
'import':function(){
km.setStatus('normal');
receiver.setTextEditStatus(false).clear();
},
'textedit.mousewheel':function(){ 'textedit.mousewheel':function(){
receiver.setContainerStyle(); receiver.setContainerStyle();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment