Commit dfc3fe69 authored by Sergey Luzyanin's avatar Sergey Luzyanin Committed by Alexander.Trofimov

startEditTextCurrentShape for grouped shape

parent 8c770562
...@@ -344,14 +344,15 @@ DrawingObjectsController.prototype = ...@@ -344,14 +344,15 @@ DrawingObjectsController.prototype =
//for mobile spreadsheet editor //for mobile spreadsheet editor
startEditTextCurrentShape: function() startEditTextCurrentShape: function()
{ {
if(this.selectedObjects.length === 1 && this.selectedObjects[0].getObjectType() === historyitem_type_Shape) var oSelector = this.selection.groupSelection ? this.selection.groupSelection : this;
if(oSelector.selectedObjects.length === 1 && oSelector.selectedObjects[0].getObjectType() === historyitem_type_Shape)
{ {
var oShape = this.selectedObjects[0]; var oShape = this.selectedObjects[0];
var oContent = oShape.getDocContent(); var oContent = oShape.getDocContent();
if(oContent) if(oContent)
{ {
this.resetInternalSelection(); oSelector.resetInternalSelection();
this.selection.textSelection = oShape; oSelector.selection.textSelection = oShape;
oContent.Cursor_MoveToEndPos(false); oContent.Cursor_MoveToEndPos(false);
this.updateSelectionState(); this.updateSelectionState();
this.updateOverlay(); this.updateOverlay();
...@@ -362,8 +363,8 @@ DrawingObjectsController.prototype = ...@@ -362,8 +363,8 @@ DrawingObjectsController.prototype =
this.checkSelectedObjectsAndCallback(function(){ this.checkSelectedObjectsAndCallback(function(){
oShape.createTextBody(); oShape.createTextBody();
var oContent = oShape.getDocContent(); var oContent = oShape.getDocContent();
oThis.resetInternalSelection(); oSelector.resetInternalSelection();
oThis.selection.textSelection = oShape; oSelector.selection.textSelection = oShape;
oContent.Cursor_MoveToEndPos(false); oContent.Cursor_MoveToEndPos(false);
oThis.updateSelectionState(); oThis.updateSelectionState();
}, [], false, historydescription_Spreadsheet_AddNewParagraph); }, [], false, historydescription_Spreadsheet_AddNewParagraph);
......
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