Commit 57295066 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51756 954022d7-b5bf-4e40-9824-e11837661b57
parent 8a099b08
......@@ -258,11 +258,17 @@
}
if (t.isCellEditMode) {if (!t.handlers.trigger("stopCellEditing")) {return true;}}
var coord = t._getCoordinates(event);
var graphicsInfo = t.handlers.trigger("getGraphicsInfo", coord.x, coord.y);
if ( asc["editor"].isStartAddShape || (graphicsInfo && graphicsInfo.isGraphicObject) )
return;
setTimeout(function () {
t.isCellEditMode = true;
var coord = t._getCoordinates(event);
t.handlers.trigger("mouseDblClick", coord.x, coord.y, isHideCursor, isCoord, function (resized) {
if (resized) {
// Мы изменяли размеры колонки/строки, не редактируем ячейку
t.isCellEditMode = false;
......@@ -1112,10 +1118,13 @@
if ( event.metaKey )
event.ctrlKey = true;
asc["editor"].isStartAddShape = true;
this.clickCounter.mouseDownEvent(coord.x, coord.y);
event.ClickCount = this.clickCounter.clickCount;
if ( (event.ClickCount == 2) && asc["editor"].isStartAddShape )
this.isDblClickInMouseDown = true;
asc["editor"].isStartAddShape = true;
t.handlers.trigger("graphicObjectMouseDown", event, coord.x, coord.y);
if ( t.isCellEditMode )
......
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