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