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
...@@ -194,7 +194,7 @@ var c_oAscSelectionType = { ...@@ -194,7 +194,7 @@ var c_oAscSelectionType = {
var c_oAscLegendMarkerType = { var c_oAscLegendMarkerType = {
Line: 0, Line: 0,
Square: 1 Square: 1
} };
var c_oAscHyperlinkType = { var c_oAscHyperlinkType = {
WebLink: 1, WebLink: 1,
......
...@@ -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);},
...@@ -689,6 +690,11 @@ ...@@ -689,6 +690,11 @@
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) {
var ws = this.getWorksheet(); var ws = this.getWorksheet();
......
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