Commit 81299d84 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

При отпускании shift нужно переслать информацию о выделении

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50249 954022d7-b5bf-4e40-9824-e11837661b57
parent 28e5462d
......@@ -181,24 +181,24 @@ var c_oAscDrawDepOptions = {
// selection type
var c_oAscSelectionType = {
RangeCells: 1,
RangeCol: 2,
RangeRow: 3,
RangeMax: 4,
RangeImage: 5,
RangeChart: 6,
RangeShape: 7,
RangeShapeText: 8
RangeCells: 1,
RangeCol: 2,
RangeRow: 3,
RangeMax: 4,
RangeImage: 5,
RangeChart: 6,
RangeShape: 7,
RangeShapeText: 8
};
var c_oAscLegendMarkerType = {
Line: 0,
Square: 1
}
Line: 0,
Square: 1
};
var c_oAscHyperlinkType = {
WebLink: 1,
RangeLink: 2
WebLink: 1,
RangeLink: 2
};
var c_oAscMouseMoveType = {
......
......@@ -958,6 +958,10 @@
if (t.lastKeyCode === 18 && event.which === 18) {
return false;
}
// При отпускании shift нужно переслать информацию о выделении
if (16 === event.which) {
this.handlers.trigger("updateSelectionName");
}
return true;
},
......
......@@ -210,6 +210,7 @@
"autoFiltersClick": function () {self._onAutoFiltersClick.apply(self, arguments);},
"commentCellClick": function () {self._onCommentCellClick.apply(self, arguments);},
"isGlobalLockEditCell": function () {return self.collaborativeEditing.getGlobalLockEditCell();},
"updateSelectionName": function () {self._onUpdateSelectionName.apply(self, arguments);},
// Shapes
"graphicObjectMouseDown": function () {self._onGraphicObjectMouseDown.apply(self, arguments);},
......@@ -688,6 +689,11 @@
if (comments.length)
ws.cellCommentator.asc_showComment(comments[0].asc_getId());
},
_onUpdateSelectionName: function () {
var ws = this.getWorksheet();
this._onSelectionNameChanged(ws.getSelectionName(/*bRangeText*/false));
},
// Shapes
_onGraphicObjectMouseDown: function (e, x, y) {
......
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