Commit aa34ba09 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Выделение с shift при нахождении на объекте

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51517 954022d7-b5bf-4e40-9824-e11837661b57
parent b7e97122
......@@ -5886,7 +5886,6 @@
},
changeSelectionStartPoint: function (x, y, isCoord, isSelectMode) {
var ar = (this.isFormulaEditMode) ? this.arrActiveFormulaRanges[this.arrActiveFormulaRanges.length - 1]: this.activeRange;
var sc = ar.startCol, sr = ar.startRow, ret = {};
var isChangeSelectionShape = false;
......@@ -5999,14 +5998,16 @@
},
changeSelectionEndPoint: function (x, y, isCoord, isSelectMode) {
var isChangeSelectionShape = false;
if (isCoord)
isChangeSelectionShape = this._checkSelectionShape();
var ar = (this.isFormulaEditMode) ? this.arrActiveFormulaRanges[this.arrActiveFormulaRanges.length - 1] : this.activeRange;
var arOld = ar.clone();
var arnOld = ar.clone(true);
var ep = isCoord ? this._calcSelectionEndPointByXY(x, y) : this._calcSelectionEndPointByOffset(x, y);
var epOld, ret;
if (ar.c2 !== ep.c2 || ar.r2 !== ep.r2) {
if (ar.c2 !== ep.c2 || ar.r2 !== ep.r2 || isChangeSelectionShape) {
this.cleanSelection();
ar.assign(ar.startCol, ar.startRow, ep.c2, ep.r2);
if (ar.type === c_oAscSelectionType.RangeCells) {
......
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