Commit 0f4eea60 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Частично поправил баг http://bugzserver/show_bug.cgi?id=18516

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59679 954022d7-b5bf-4e40-9824-e11837661b57
parent 9b6639ca
......@@ -411,22 +411,24 @@
};
CellEditor.prototype.enterCellRange = function (rangeStr) {
var t = this;
var res = t._findRangeUnderCursor();
var res = this._findRangeUnderCursor();
if (res.range) {
t._moveCursor(kPosition, res.index);
t._selectChars(kPosition, res.index + res.length);
this._moveCursor(kPosition, res.index);
this._selectChars(kPosition, res.index + res.length);
}
var lastAction = t.undoList.length > 0 ? t.undoList[t.undoList.length - 1] : null;
var lastAction = this.undoList.length > 0 ? this.undoList[this.undoList.length - 1] : null;
while (lastAction && lastAction.isRange) {
t.undoList.pop();
lastAction = t.undoList.length > 0 ? t.undoList[t.undoList.length - 1] : null;
this.undoList.pop();
lastAction = this.undoList.length > 0 ? this.undoList[this.undoList.length - 1] : null;
}
t._addChars(rangeStr, undefined, /*isRange*/true);
var tmp = this.skipTLUpdate;
this.skipTLUpdate = false;
this._addChars(rangeStr, undefined, /*isRange*/true);
this.skipTLUpdate = tmp;
};
CellEditor.prototype.changeCellRange = function (range) {
......
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