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

Bug 25416 - Курсор отстается в параграфе автофигуры при выходе из его редактирования по esc

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57293 954022d7-b5bf-4e40-9824-e11837661b57
parent 6bb85ba1
......@@ -2798,7 +2798,7 @@ DrawingObjectsController.prototype =
{
if(this.selection.groupSelection)
{
if(this.selection.groupSelection.chartSelection)
if(this.selection.groupSelection.selection.chartSelection)
{
//TODO
}
......@@ -3264,6 +3264,7 @@ DrawingObjectsController.prototype =
if(this.selection.textSelection)
{
this.selection.textSelection = null;
drawingObjectsController.updateSelectionState();
}
else if(this.selection.groupSelection)
{
......@@ -3271,19 +3272,37 @@ DrawingObjectsController.prototype =
{
this.selection.groupSelection.selection.textSelection = null;
}
else if(this.selection.groupSelection.chartSelection)
else if(this.selection.groupSelection.selection.chartSelection)
{
//TODO
if(this.selection.groupSelection.selection.chartSelection.selection.textSelection)
{
this.selection.groupSelection.selection.chartSelection.selection.textSelection = null;
}
else
{
this.selection.groupSelection.selection.chartSelection.resetSelection();
this.selection.groupSelection.selection.chartSelection = null;
}
}
else
{
this.selection.groupSelection.resetSelection();
this.selection.groupSelection = null;
}
drawingObjectsController.updateSelectionState();
}
else if(this.selection.chartSelection)
{
//TODO
if(this.selection.chartSelection.selection.textSelection)
{
this.selection.chartSelection.selection.textSelection = null;
}
else
{
this.selection.chartSelection.resetSelection();
this.selection.chartSelection = null;
}
drawingObjectsController.updateSelectionState();
}
else
{
......@@ -3302,7 +3321,7 @@ DrawingObjectsController.prototype =
if(!ctrlKey)
{
//if(this.selection.textSelection || this.selection.groupSelection && this.selection.groupSelection.selection.textSelection
// || this.selection.chartSelection && this.selection.chartSelection.textSelection)
// || this.selection.chartSelection && this.selection.chartSelection.selection.textSelection)
//{
this.checkSelectedObjectsAndCallback(this.paragraphAdd, [new ParaSpace(1)]);
this.recalculate();
......
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