Make clicking outside of the canvas activate select mode. This way the user can change the fill color easily, instead of the text getting deselected as soon as they click fill.

This commit is contained in:
DD 2018-03-22 17:56:54 -04:00
parent 6bfc3f23df
commit b98708ff70

View file

@ -102,6 +102,11 @@ class TextTool extends paper.Tool {
// Allow other tools to cancel text edit mode
onTextEditCancelled () {
this.endTextEdit();
if (this.textBox) {
this.mode = TextTool.SELECT_MODE;
this.textBox.selected = true;
this.setSelectedItems();
}
}
/**
* Called when the view matrix changes