Commit 239ad2b7 authored by Akikonata's avatar Akikonata

Merge branch 'dev' of https://github.com/kitygraph/kityminder into dev

parents 00eb48b2 d44dd094
......@@ -151,7 +151,10 @@ KM.registerUI( 'forecolor', function ( name ) {
name: name,
title: this.getLang( 'tooltips' )[ name ] || '',
click: function () {
me.execCommand( name, getCurrentColor() );
var color = kity.Color.parse(getCurrentColor()).toHEX();
if(!color == '#000000'){
me.execCommand( name, color );
}
}
} );
......
......@@ -27,7 +27,7 @@ KityMinder.registerModule( "TextEditModule", function () {
var textShape = node.getTextShape();
textShape.setStyle('cursor','default');
if ( node.isSelected() ) {
if ( this.isSingleSelect() && node.isSelected() ) {
sel.collapse();
node.getTextShape().setStyle('cursor','text');
......
......@@ -87,7 +87,13 @@ KityMinder.registerModule( "Select", function () {
}
},
mousemove: marqueeActivator.selectMove,
mouseup: marqueeActivator.selectEnd
mouseup: function ( e ) {
var clickNode = e.getTargetNode();
if ( clickNode && clickNode.isSelected() && !this.isSingleSelect() ) {
this.select( clickNode, true );
}
marqueeActivator.selectEnd( e );
}
}
};
} );
\ No newline at end of file
KityMinder.registerModule( 'Zoom', function () {
/*
return {
events: {
'mousewheel': function ( e ) {
......@@ -18,5 +18,6 @@ KityMinder.registerModule( 'Zoom', function () {
this._zoom = 1;
}
}
};
};*/
return {};
} );
\ No newline at end of file
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